diff --git a/packages/smooth_app/lib/generic_lib/dialogs/smooth_alert_dialog.dart b/packages/smooth_app/lib/generic_lib/dialogs/smooth_alert_dialog.dart index 84db6f1b45d..d9b87048b5a 100644 --- a/packages/smooth_app/lib/generic_lib/dialogs/smooth_alert_dialog.dart +++ b/packages/smooth_app/lib/generic_lib/dialogs/smooth_alert_dialog.dart @@ -117,6 +117,8 @@ class _SmoothDialogTitle extends StatelessWidget { required this.close, }); + static const double _titleHeight = 32.0; + final String label; final bool close; @@ -126,7 +128,7 @@ class _SmoothDialogTitle extends StatelessWidget { mainAxisSize: MainAxisSize.min, children: [ SizedBox( - height: 32.0, + height: _titleHeight, child: Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, crossAxisAlignment: CrossAxisAlignment.center, @@ -182,7 +184,7 @@ class _SmoothDialogCrossButton extends StatelessWidget { padding: EdgeInsets.all(SMALL_SPACE), child: Icon( Icons.close, - size: 29.0, + size: _SmoothDialogTitle._titleHeight - (2 * SMALL_SPACE), ), ), onTap: () => Navigator.of(context, rootNavigator: true).pop(), diff --git a/packages/smooth_app/lib/pages/product_list_user_dialog_helper.dart b/packages/smooth_app/lib/pages/product_list_user_dialog_helper.dart index 8cc05a30fac..74b1eef3d30 100644 --- a/packages/smooth_app/lib/pages/product_list_user_dialog_helper.dart +++ b/packages/smooth_app/lib/pages/product_list_user_dialog_helper.dart @@ -45,6 +45,7 @@ class ProductListUserDialogHelper { }, ), ), + actionsAxis: Axis.vertical, negativeAction: SmoothActionButton( onPressed: () => Navigator.pop(context), text: appLocalizations.cancel, @@ -109,6 +110,8 @@ class ProductListUserDialogHelper { close: true, title: getProductName(product, appLocalizations), body: Column(children: children), + actionsAxis: Axis.vertical, + actionsOrder: SmoothButtonsBarOrder.numerical, negativeAction: SmoothActionButton( onPressed: () async { final ProductList? productList =