Flutter 7.2 - TabBar & BottomNavigationBar
1, Tab bar: class _TabScreenState extends State<TabScreen> { @override Widget build (BuildContext context) { return DefaultTabController ( length: 2 , // số tab child: Scaffold ( appBar: AppBar ( title: Text ( 'Meals' ) , bottom: TabBar ( tabs: [ Tab ( icon: Icon (Icons. category ) , text: 'Category' , ) , Tab ( icon: Icon (Icons. star ) , text: 'Favorites' , ) , ] , ) , ) , body: TabBarView ( children: [ CategoriesScreen () , FavoritesScreen () , ] , ) , )) ; } } 2, BottomNavigationBar class _TabScreenState extends State<TabScreen> { final List<Map<String , Object>> _pages = [ { 'title' : 'Categor...