Update menu
This commit is contained in:
parent
930fb95319
commit
0c5a623562
1 changed files with 3 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue