Basket confirmation page

This commit is contained in:
2024-05-10 22:08:27 +03:00
parent 4853f61da2
commit 0c11883b48
5 changed files with 219 additions and 3 deletions

View File

@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
import 'package:gymlink_module_web/components/app_bar.dart';
import 'package:gymlink_module_web/components/basket_item_card.dart';
import 'package:gymlink_module_web/components/heading.dart';
import 'package:gymlink_module_web/pages/order_confirmation.dart';
import 'package:gymlink_module_web/tools/prefs.dart';
List<Map<String, dynamic>> cart = [
@@ -245,7 +246,12 @@ class _BasketPageState extends State<BasketPage> {
'Итого: $totalPrice',
),
ElevatedButton(
onPressed: () {},
onPressed: () => Navigator.of(context).push(
MaterialPageRoute(
builder: (context) =>
const OrderConfirmationPage(),
),
),
style: ElevatedButton.styleFrom(
backgroundColor: Theme.of(context).primaryColor,
shape: const RoundedRectangleBorder(