fixed a bug in alert display

This commit is contained in:
Amir Hossein Mousavi 2023-09-05 16:51:47 +03:30
parent 4922f517ad
commit 6c55a79d2d
1 changed files with 12 additions and 10 deletions

View File

@ -194,6 +194,7 @@ class ActionSheetUtils {
Row( Row(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
if (data.titleIcon != null)
GestureDetector( GestureDetector(
onTap: () => Navigator.of(context).pop(), onTap: () => Navigator.of(context).pop(),
child: Icon( child: Icon(
@ -202,6 +203,7 @@ class ActionSheetUtils {
color: data.titleColor, color: data.titleColor,
), ),
), ),
if (data.titleIcon != null)
const SizedBox( const SizedBox(
width: 8, width: 8,
), ),