Linked Register and Checkout page to navbar/bottomappbar (Temp)

This commit is contained in:
Matthew Patrick 2022-04-24 17:42:24 +07:00
parent 0b04adc430
commit 58c9eac2b6

View file

@ -2,6 +2,8 @@ import 'package:flutter/material.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';
class Menu extends StatefulWidget {
const Menu({Key? key}) : super(key: key);
@ -49,9 +51,9 @@ class _MenuState extends State<Menu> {
} else if (index == 2) {
_selectedWidget = const Products();
} else if (index == 3) {
_selectedWidget = const Products();
_selectedWidget = Checkout();
} else if (index == 4) {
_selectedWidget = const Products();
_selectedWidget = Register();
}
});
}