cubetiq-mobile-app/lib/Page1/MyBottomNavigation.dart
2021-01-30 16:18:51 +07:00

42 lines
1.1 KiB
Dart

import 'package:cubetiqs_pos_system/Page1/MyBurgerPage.dart';
import 'package:cubetiqs_pos_system/Page1/MyLogin.dart';
import 'package:cubetiqs_pos_system/Page1/MyPizza.dart';
import 'package:flutter/material.dart';
class MyBottom extends StatefulWidget {
@override
_MyBottomState createState() => _MyBottomState();
}
class _MyBottomState extends State<MyBottom> {
@override
Widget build(BuildContext context) {
return Container(
child: BottomNavigationBar(
type: BottomNavigationBarType.fixed,
selectedItemColor: Color.fromRGBO(180, 64, 16, 1),
unselectedItemColor: Color.fromRGBO(180, 64, 16, 1),
iconSize: 25,
onTap: (int index){
Navigator.push(context, MaterialPageRoute(builder: (context){
return Mylogin();
}));
},
items: [
BottomNavigationBarItem(icon:Icon( Icons.people),label: ("User") ,),
BottomNavigationBarItem(icon:Icon( Icons.shopping_cart),label: ("Add to cart") ,),
BottomNavigationBarItem(icon:Icon( Icons.settings),label: ("Settings")),
]
),
);
}
}