mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-11-27 13:04:54 +00:00
Fixed design issues
This commit is contained in:
@ -41,8 +41,7 @@ class SceneDevicesBody extends StatelessWidget {
|
||||
text: e.name ?? '',
|
||||
textAlign: TextAlign.start,
|
||||
style: context.bodyLarge.copyWith(
|
||||
color: (tabState is TabSelected) &&
|
||||
tabState.roomId == e.id
|
||||
color: (tabState is TabSelected) && tabState.roomId == e.id
|
||||
? ColorsManager.textPrimaryColor
|
||||
: ColorsManager.textPrimaryColor.withOpacity(0.2),
|
||||
),
|
||||
@ -55,6 +54,7 @@ class SceneDevicesBody extends StatelessWidget {
|
||||
Expanded(
|
||||
child: TabBarView(
|
||||
controller: _tabController,
|
||||
physics: const NeverScrollableScrollPhysics(),
|
||||
children: rooms!.map((e) => _buildRoomTab(e, context)).toList(),
|
||||
),
|
||||
),
|
||||
|
||||
@ -14,8 +14,7 @@ extension ContextExtension on BuildContext {
|
||||
|
||||
double get height => MediaQuery.sizeOf(this).height;
|
||||
|
||||
InputDecorationTheme get inputDecoration =>
|
||||
Theme.of(this).inputDecorationTheme;
|
||||
InputDecorationTheme get inputDecoration => Theme.of(this).inputDecorationTheme;
|
||||
|
||||
TextStyle get displayLarge => Theme.of(this).textTheme.displayLarge!;
|
||||
|
||||
@ -61,9 +60,7 @@ extension ContextExtension on BuildContext {
|
||||
}
|
||||
|
||||
void customAlertDialog(
|
||||
{required Widget alertBody,
|
||||
required String title,
|
||||
required VoidCallback onConfirm}) {
|
||||
{required Widget alertBody, required String title, required VoidCallback onConfirm}) {
|
||||
showDialog(
|
||||
context: this,
|
||||
builder: (BuildContext context) {
|
||||
@ -100,7 +97,7 @@ extension ContextExtension on BuildContext {
|
||||
),
|
||||
|
||||
/// custom body content
|
||||
alertBody,
|
||||
Flexible(child: SingleChildScrollView(child: alertBody)),
|
||||
|
||||
/// Footer buttons
|
||||
Container(
|
||||
@ -118,8 +115,7 @@ extension ContextExtension on BuildContext {
|
||||
child: Center(
|
||||
child: BodyMedium(
|
||||
text: 'Cancel',
|
||||
style: context.bodyMedium
|
||||
.copyWith(color: ColorsManager.greyColor),
|
||||
style: context.bodyMedium.copyWith(color: ColorsManager.greyColor),
|
||||
),
|
||||
),
|
||||
),
|
||||
@ -133,8 +129,8 @@ extension ContextExtension on BuildContext {
|
||||
child: Center(
|
||||
child: BodyMedium(
|
||||
text: 'Confirm',
|
||||
style: context.bodyMedium.copyWith(
|
||||
color: ColorsManager.primaryColorWithOpacity),
|
||||
style: context.bodyMedium
|
||||
.copyWith(color: ColorsManager.primaryColorWithOpacity),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user