diff --git a/lib/utils/action_sheet.dart b/lib/utils/action_sheet.dart index 1c550dd..7fdaab2 100644 --- a/lib/utils/action_sheet.dart +++ b/lib/utils/action_sheet.dart @@ -194,17 +194,19 @@ class ActionSheetUtils { Row( mainAxisSize: MainAxisSize.min, children: [ - GestureDetector( - onTap: () => Navigator.of(context).pop(), - child: Icon( - data.titleIcon, - size: 20, - color: data.titleColor, + if (data.titleIcon != null) + GestureDetector( + onTap: () => Navigator.of(context).pop(), + child: Icon( + data.titleIcon, + size: 20, + color: data.titleColor, + ), + ), + if (data.titleIcon != null) + const SizedBox( + width: 8, ), - ), - const SizedBox( - width: 8, - ), Expanded( child: DidvanText( data.title!,