diff --git a/lib/screens/home/home_screen.dart b/lib/screens/home/home_screen.dart index a304a212..755f740a 100644 --- a/lib/screens/home/home_screen.dart +++ b/lib/screens/home/home_screen.dart @@ -597,7 +597,7 @@ class _HomeScreenState extends State { } void _showErrorBottomSheet(BuildContext context, String errorMessage) { showModalBottomSheet( - isDismissible:false, + isDismissible:true, enableDrag:false, context: context, shape: RoundedRectangleBorder( @@ -610,7 +610,20 @@ class _HomeScreenState extends State { child: Column( mainAxisSize: MainAxisSize.min, children: [ - Icon(Icons.error_outline, color: Colors.red, size: 40), + Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Icon(Icons.error_outline, color: Colors.red, size: 40), + InkWell( + onTap: () { + Navigator.pop(context); + }, + child: Padding( + padding: const EdgeInsets.all(8.0), + child: Icon(Icons.close,color: Colors.red,), + )) + ], + ), const SizedBox(height: 10), Text( TranslationBase.of(context).pharmacyIntervention,