Add cart page to menu

This commit is contained in:
Moe Poi ~ 2022-04-26 16:13:40 +07:00
parent 137121992a
commit ea6c0ddc5b

View file

@ -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<Menu> {
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();
}