update bottomsheet

This commit is contained in:
2025-03-03 19:04:46 +05:30
parent 5ed75e2aef
commit 401d82ac70
4 changed files with 103 additions and 94 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@@ -998,7 +998,7 @@
"languageVersion": "3.4" "languageVersion": "3.4"
} }
], ],
"generated": "2025-03-01T13:17:00.413477Z", "generated": "2025-03-03T13:34:10.761161Z",
"generator": "pub", "generator": "pub",
"generatorVersion": "3.4.4", "generatorVersion": "3.4.4",
"flutterRoot": "file:///Users/rajeevsingh/Documents/allSoftwares/flutter", "flutterRoot": "file:///Users/rajeevsingh/Documents/allSoftwares/flutter",

File diff suppressed because one or more lines are too long

View File

@@ -895,8 +895,15 @@ class _MycartState extends State<Mycart> {
void _showBottomSheet(BuildContext context) { void _showBottomSheet(BuildContext context) {
showModalBottomSheet( showModalBottomSheet(
context: context, context: context,
isScrollControlled: true,
builder: (BuildContext context) { builder: (BuildContext context) {
return Consumer<AddtocartProvider>( return Padding(
padding: EdgeInsets.only(
bottom: MediaQuery.of(context)
.viewInsets
.bottom, // Adjusts for keyboard
),
child: SingleChildScrollView(child: Consumer<AddtocartProvider>(
builder: (context, pinProvider, child) { builder: (context, pinProvider, child) {
return Container( return Container(
padding: EdgeInsets.all(20.w), padding: EdgeInsets.all(20.w),
@@ -975,9 +982,11 @@ class _MycartState extends State<Mycart> {
else else
Text( Text(
'Delivery available for this pincode. Submit now.', 'Delivery available for this pincode. Submit now.',
style: TextStyle(color: Colors.lightGreen, fontSize: 12), style:
TextStyle(color: Colors.lightGreen, fontSize: 12),
), ),
const SizedBox(height: 10), // Add spacing before the button const SizedBox(
height: 10), // Add spacing before the button
Center( Center(
child: SizedBox( child: SizedBox(
width: double.infinity, width: double.infinity,
@@ -994,7 +1003,7 @@ class _MycartState extends State<Mycart> {
), ),
); );
}, },
); )));
}, },
); );
} }