mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-11-27 08:14:55 +00:00
Fixed design issues
This commit is contained in:
@ -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