update bottomsheet
This commit is contained in:
@@ -998,7 +998,7 @@
|
||||
"languageVersion": "3.4"
|
||||
}
|
||||
],
|
||||
"generated": "2025-03-01T13:17:00.413477Z",
|
||||
"generated": "2025-03-03T13:34:10.761161Z",
|
||||
"generator": "pub",
|
||||
"generatorVersion": "3.4.4",
|
||||
"flutterRoot": "file:///Users/rajeevsingh/Documents/allSoftwares/flutter",
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -895,8 +895,15 @@ class _MycartState extends State<Mycart> {
|
||||
void _showBottomSheet(BuildContext context) {
|
||||
showModalBottomSheet(
|
||||
context: context,
|
||||
isScrollControlled: true,
|
||||
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) {
|
||||
return Container(
|
||||
padding: EdgeInsets.all(20.w),
|
||||
@@ -975,9 +982,11 @@ class _MycartState extends State<Mycart> {
|
||||
else
|
||||
Text(
|
||||
'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(
|
||||
child: SizedBox(
|
||||
width: double.infinity,
|
||||
@@ -994,7 +1003,7 @@ class _MycartState extends State<Mycart> {
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
)));
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user