主要四个页面的基础页面

This commit is contained in:
2022-10-19 17:47:04 +08:00
parent 2ddccb3f9d
commit 49ad269c2b
13 changed files with 156 additions and 74 deletions

View File

@@ -1,5 +1,6 @@
import 'package:chat/configs/app_colors.dart';
import 'package:chat/services/tabbar_service.dart';
import 'package:chat/views/contact/index/index_page.dart';
import 'package:chat/views/home/index_page.dart';
import 'package:chat/views/moments/index/index_page.dart';
import 'package:chat/views/user/index/user_page.dart';
@@ -12,6 +13,7 @@ class AppPage extends StatelessWidget {
final List<IndexedStackChild> _tabBarPageList = [
IndexedStackChild(child: const HomePage()),
IndexedStackChild(child: const ContactPage()),
IndexedStackChild(child: const MomentsPage()),
IndexedStackChild(child: const UserPage()),
];
@@ -19,15 +21,19 @@ class AppPage extends StatelessWidget {
final List<Map> _tabBarList = [
{
'icon': 'tabBar_03.png',
'label': '首页',
'label': '消息',
},
{
'icon': 'tabBar_03.png',
'label': '首页',
'label': '通讯录',
},
{
'icon': 'tabBar_03.png',
'label': '首页',
'label': '发现',
},
{
'icon': 'tabBar_03.png',
'label': '我的',
},
];