Update menu

This commit is contained in:
Moe Poi ~ 2022-04-30 09:50:05 +07:00
parent 930fb95319
commit 0c5a623562

View file

@ -1,9 +1,9 @@
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/payment.dart';
import 'package:nekoya_flutter/screens/Checkout.dart';
import 'package:nekoya_flutter/screens/cart.dart';
import 'package:nekoya_flutter/screens/transactions.dart';
@ -23,7 +23,7 @@ class _MenuState extends State<Menu> {
@override
void initState() {
if (widget.initialScreen == 0) {
_selectedWidget = const Checkout();
_selectedWidget = const Login();
} else if (widget.initialScreen == 1) {
_selectedWidget = const Payment();
} else if (widget.initialScreen == 2) {
@ -59,7 +59,7 @@ class _MenuState extends State<Menu> {
setState(() {
_selectedIndex = index;
if (index == 0) {
_selectedWidget = const Checkout();
_selectedWidget = const Login();
} else if (index == 1) {
_selectedWidget = const Payment();
} else if (index == 2) {