From ea6c0ddc5be3de428bc247a4f98c00f72ff3fe46 Mon Sep 17 00:00:00 2001 From: Moe Date: Tue, 26 Apr 2022 16:13:40 +0700 Subject: [PATCH] Add cart page to menu --- lib/components/menu.dart | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/components/menu.dart b/lib/components/menu.dart index 4d74b63..b4de2b9 100644 --- a/lib/components/menu.dart +++ b/lib/components/menu.dart @@ -1,10 +1,11 @@ import 'package:flutter/material.dart'; -import 'package:nekoya_flutter/screens/login.dart'; import 'dart:math' as math; import 'package:nekoya_flutter/screens/products.dart'; import 'package:nekoya_flutter/screens/register.dart'; import 'package:nekoya_flutter/screens/checkout.dart'; +import 'package:nekoya_flutter/screens/cart.dart'; +import 'package:nekoya_flutter/screens/login.dart'; class Menu extends StatefulWidget { const Menu({Key? key}) : super(key: key); @@ -48,11 +49,11 @@ class _MenuState extends State { if (index == 0) { _selectedWidget = const Login(); } else if (index == 1) { - _selectedWidget = const Products(); + _selectedWidget = const Checkout(); } else if (index == 2) { _selectedWidget = const Products(); } else if (index == 3) { - _selectedWidget = const Checkout(); + _selectedWidget = const Cart(); } else if (index == 4) { _selectedWidget = const Register(); }