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,17 +194,19 @@ class ActionSheetUtils {
Row( Row(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
GestureDetector( if (data.titleIcon != null)
onTap: () => Navigator.of(context).pop(), GestureDetector(
child: Icon( onTap: () => Navigator.of(context).pop(),
data.titleIcon, child: Icon(
size: 20, data.titleIcon,
color: data.titleColor, size: 20,
color: data.titleColor,
),
),
if (data.titleIcon != null)
const SizedBox(
width: 8,
), ),
),
const SizedBox(
width: 8,
),
Expanded( Expanded(
child: DidvanText( child: DidvanText(
data.title!, data.title!,