From 1f007084c0a4d3a4fe7ea7bfccf5c24f3b3ec155 Mon Sep 17 00:00:00 2001 From: Sultan Khan Date: Sun, 27 Apr 2025 14:55:24 +0300 Subject: [PATCH] Added cross on pharmacy intervention bottom sheet --- lib/screens/home/home_screen.dart | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) 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,