orderlistcomplete
This commit is contained in:
@@ -713,7 +713,7 @@ class _MycartState extends State<Mycart> {
|
||||
);
|
||||
} else if (provider.allitem == null) {
|
||||
return Center(child: Text('🛒 Your Front Shop Cart is empty'));
|
||||
} else if (provider.allitem.items == null) {
|
||||
} else if (provider.allitem.items!.isEmpty) {
|
||||
return Center(
|
||||
child: ElevatedButton(
|
||||
style: ElevatedButton.styleFrom(backgroundColor: Colors.green),
|
||||
@@ -729,6 +729,7 @@ class _MycartState extends State<Mycart> {
|
||||
),
|
||||
));
|
||||
} else {
|
||||
print("kldjhgjkhfgjkh ${provider.allitem.items}");
|
||||
return Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
@@ -976,7 +977,8 @@ class _AddressBottomSheetState extends State<AddressBottomSheet> {
|
||||
onPressed: () {
|
||||
Navigator.pop(context);
|
||||
Navigator.of(context).push(MaterialPageRoute(
|
||||
builder: (context) {
|
||||
builder: (context)
|
||||
{
|
||||
return CardCheckoutScreen(
|
||||
amount: double.parse(
|
||||
paymentProvider.allitem.subtotal.toString()),
|
||||
@@ -992,9 +994,6 @@ class _AddressBottomSheetState extends State<AddressBottomSheet> {
|
||||
remarks: paymentProvider.selecteUserName);
|
||||
},
|
||||
));
|
||||
|
||||
// showPaymentMethodBottomSheet(context);
|
||||
// context.push(MyRoutes.SELECTPAYMENTSCREEN);
|
||||
},
|
||||
label: Text(
|
||||
"Continue",
|
||||
|
||||
Reference in New Issue
Block a user