|  |  |  | @ -9,14 +9,13 @@ import 'package:hmg_patient_app_new/theme/colors.dart'; | 
		
	
		
			
				|  |  |  |  | void showCommonBottomSheet(BuildContext context, {required Widget child, required VoidCallback callBackFunc, String? title, required double height, bool isCloseButtonVisible = true}) { | 
		
	
		
			
				|  |  |  |  |   showModalBottomSheet<String>( | 
		
	
		
			
				|  |  |  |  |       context: context, | 
		
	
		
			
				|  |  |  |  |       isScrollControlled: true, | 
		
	
		
			
				|  |  |  |  |       isScrollControlled: false, | 
		
	
		
			
				|  |  |  |  |       showDragHandle: false, | 
		
	
		
			
				|  |  |  |  |       backgroundColor: AppColors.scaffoldBgColor, | 
		
	
		
			
				|  |  |  |  |       builder: (BuildContext context) { | 
		
	
		
			
				|  |  |  |  |         return Container( | 
		
	
		
			
				|  |  |  |  |           height: height, | 
		
	
		
			
				|  |  |  |  |           decoration: const BoxDecoration( | 
		
	
		
			
				|  |  |  |  |             borderRadius: BorderRadius.vertical(top: Radius.circular(20)), | 
		
	
		
			
				|  |  |  |  |           ), | 
		
	
		
			
				|  |  |  |  |           decoration: RoundedRectangleBorder().toSmoothCornerDecoration(color: AppColors.scaffoldBgColor, borderRadius: 24.h), | 
		
	
		
			
				|  |  |  |  |           child: ButtonSheetContent( | 
		
	
		
			
				|  |  |  |  |             title: title!, | 
		
	
		
			
				|  |  |  |  |             isCloseButtonVisible: isCloseButtonVisible, | 
		
	
	
		
			
				
					|  |  |  | @ -37,46 +36,48 @@ class ButtonSheetContent extends StatelessWidget { | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |   @override | 
		
	
		
			
				|  |  |  |  |   Widget build(BuildContext context) { | 
		
	
		
			
				|  |  |  |  |     return   Column( | 
		
	
		
			
				|  |  |  |  |         crossAxisAlignment: CrossAxisAlignment.start, | 
		
	
		
			
				|  |  |  |  |         children: [ | 
		
	
		
			
				|  |  |  |  |           SizedBox(height: 20.h,), | 
		
	
		
			
				|  |  |  |  |           Center( | 
		
	
		
			
				|  |  |  |  |             child: Container( | 
		
	
		
			
				|  |  |  |  |               margin: const EdgeInsets.only(top: 18, bottom: 12), | 
		
	
		
			
				|  |  |  |  |               height: 4, | 
		
	
		
			
				|  |  |  |  |               width: 40.h, | 
		
	
		
			
				|  |  |  |  |               decoration: BoxDecoration( | 
		
	
		
			
				|  |  |  |  |                 color: Colors.grey[400], | 
		
	
		
			
				|  |  |  |  |                 borderRadius: BorderRadius.circular(2), | 
		
	
		
			
				|  |  |  |  |               ), | 
		
	
		
			
				|  |  |  |  |     return Column( | 
		
	
		
			
				|  |  |  |  |       crossAxisAlignment: CrossAxisAlignment.start, | 
		
	
		
			
				|  |  |  |  |       children: [ | 
		
	
		
			
				|  |  |  |  |         // SizedBox( | 
		
	
		
			
				|  |  |  |  |         //   height: 20.h, | 
		
	
		
			
				|  |  |  |  |         // ), | 
		
	
		
			
				|  |  |  |  |         Center( | 
		
	
		
			
				|  |  |  |  |           child: Container( | 
		
	
		
			
				|  |  |  |  |             margin: const EdgeInsets.only(top: 18, bottom: 12), | 
		
	
		
			
				|  |  |  |  |             height: 4, | 
		
	
		
			
				|  |  |  |  |             width: 40.h, | 
		
	
		
			
				|  |  |  |  |             decoration: BoxDecoration( | 
		
	
		
			
				|  |  |  |  |               color: Colors.grey[400], | 
		
	
		
			
				|  |  |  |  |               borderRadius: BorderRadius.circular(2), | 
		
	
		
			
				|  |  |  |  |             ), | 
		
	
		
			
				|  |  |  |  |           ), | 
		
	
		
			
				|  |  |  |  |         ), | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |           // Close button | 
		
	
		
			
				|  |  |  |  |           isCloseButtonVisible | 
		
	
		
			
				|  |  |  |  |               ?   Padding( | 
		
	
		
			
				|  |  |  |  |     padding: EdgeInsets.symmetric(horizontal: 16), child: Utils.buildSvgWithAssets(    icon: AppAssets.closeBottomNav, | 
		
	
		
			
				|  |  |  |  |                       width: 32, | 
		
	
		
			
				|  |  |  |  |                       height: 32).onPress((){ | 
		
	
		
			
				|  |  |  |  |                         Navigator.of(context).pop(); | 
		
	
		
			
				|  |  |  |  |                       }), | 
		
	
		
			
				|  |  |  |  |                 ) | 
		
	
		
			
				|  |  |  |  |               : SizedBox(), | 
		
	
		
			
				|  |  |  |  |         // Close button | 
		
	
		
			
				|  |  |  |  |         isCloseButtonVisible | 
		
	
		
			
				|  |  |  |  |             ? Padding( | 
		
	
		
			
				|  |  |  |  |                 padding: EdgeInsets.symmetric(horizontal: 16), | 
		
	
		
			
				|  |  |  |  |                 child: Utils.buildSvgWithAssets(icon: AppAssets.closeBottomNav, width: 32, height: 32).onPress(() { | 
		
	
		
			
				|  |  |  |  |                   Navigator.of(context).pop(); | 
		
	
		
			
				|  |  |  |  |                 }), | 
		
	
		
			
				|  |  |  |  |               ) | 
		
	
		
			
				|  |  |  |  |             : SizedBox(), | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |           SizedBox(height: 20,), | 
		
	
		
			
				|  |  |  |  |           Padding( | 
		
	
		
			
				|  |  |  |  |             padding: EdgeInsets.symmetric(horizontal: 16), | 
		
	
		
			
				|  |  |  |  |             child: Text( | 
		
	
		
			
				|  |  |  |  |               title, | 
		
	
		
			
				|  |  |  |  |               style: TextStyle(fontSize: 27.h, fontWeight: FontWeight.bold), | 
		
	
		
			
				|  |  |  |  |             ), | 
		
	
		
			
				|  |  |  |  |         SizedBox( | 
		
	
		
			
				|  |  |  |  |           height: 20, | 
		
	
		
			
				|  |  |  |  |         ), | 
		
	
		
			
				|  |  |  |  |         Padding( | 
		
	
		
			
				|  |  |  |  |           padding: EdgeInsets.symmetric(horizontal: 16), | 
		
	
		
			
				|  |  |  |  |           child: Text( | 
		
	
		
			
				|  |  |  |  |             title, | 
		
	
		
			
				|  |  |  |  |             style: TextStyle(fontSize: 27.h, fontWeight: FontWeight.bold), | 
		
	
		
			
				|  |  |  |  |           ), | 
		
	
		
			
				|  |  |  |  |           const SizedBox(height: 16), | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |     Expanded(child:  child) | 
		
	
		
			
				|  |  |  |  |         ], | 
		
	
		
			
				|  |  |  |  |       ); | 
		
	
		
			
				|  |  |  |  |         ), | 
		
	
		
			
				|  |  |  |  |         const SizedBox(height: 16), | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |         Expanded(child: child) | 
		
	
		
			
				|  |  |  |  |       ], | 
		
	
		
			
				|  |  |  |  |     ); | 
		
	
		
			
				|  |  |  |  |   } | 
		
	
		
			
				|  |  |  |  | } | 
		
	
	
		
			
				
					|  |  |  | 
 |