Skip to content

Commit

Permalink
fixup! feat: add info dialog about notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
gry-mar committed Dec 1, 2024
1 parent 5bec175 commit ffefd9c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
10 changes: 6 additions & 4 deletions lib/config/ui_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,6 @@ abstract class AboutUsConfig {
static const borderRadius = 8.0;
static const iconPadding = 10.0;
static const photoSize = 92.0;

static const dialogHorizontalPadding = 14.0;
static const dialogVerticalPadding = 20.0;
static const dialogButtonFontSize = 16.0;
static const dialogTitleFontSize = 24.0;
}

Expand Down Expand Up @@ -204,3 +200,9 @@ abstract class NavigationTabViewConfig {
static const radius = 8.0;
static const navIconSize = 30.0;
}

abstract class AlertDialogConfig {
static const horizontalPadding = 14.0;
static const verticalPadding = 20.0;
static const buttonFontSize = 16.0;
}
8 changes: 4 additions & 4 deletions lib/widgets/my_alert_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ class _MyAlertDialog extends StatelessWidget {
return AlertDialog(
content: Padding(
padding: const EdgeInsets.symmetric(
horizontal: AboutUsConfig.dialogHorizontalPadding,
vertical: AboutUsConfig.dialogVerticalPadding,
horizontal: AlertDialogConfig.horizontalPadding,
vertical: AlertDialogConfig.verticalPadding,
),
child: dialogContent,
),
Expand All @@ -65,7 +65,7 @@ class _MyAlertDialog extends StatelessWidget {
child: Text(
confirmText,
style: context.textTheme.bodyOrange.copyWith(
fontSize: AboutUsConfig.dialogButtonFontSize,
fontSize: AlertDialogConfig.buttonFontSize,
),
),
),
Expand All @@ -75,7 +75,7 @@ class _MyAlertDialog extends StatelessWidget {
child: Text(
context.localize.close,
style: context.textTheme.body.copyWith(
fontSize: AboutUsConfig.dialogButtonFontSize,
fontSize: AlertDialogConfig.buttonFontSize,
),
),
onPressed: () {
Expand Down

0 comments on commit ffefd9c

Please sign in to comment.