基础页面

This commit is contained in:
2022-10-20 14:21:39 +08:00
parent 49ad269c2b
commit 42ba10ec61
62 changed files with 5132 additions and 54 deletions

View File

@@ -20,19 +20,23 @@ class AppPage extends StatelessWidget {
final List<Map> _tabBarList = [
{
'icon': 'tabBar_03.png',
'icon': Icons.message_outlined,
'active_icon': Icons.message,
'label': '消息',
},
{
'icon': 'tabBar_03.png',
'icon': Icons.contact_page_outlined,
'active_icon': Icons.contact_page,
'label': '通讯录',
},
{
'icon': 'tabBar_03.png',
'icon': Icons.explore_outlined,
'active_icon': Icons.explore,
'label': '发现',
},
{
'icon': 'tabBar_03.png',
'icon': Icons.person_outline,
'active_icon': Icons.person,
'label': '我的',
},
];
@@ -47,16 +51,14 @@ class AppPage extends StatelessWidget {
},
items: _tabBarList.map((item) {
return BottomNavigationBarItem(
icon: Image.asset(
'assets/icons/${item['icon']}',
width: 20,
height: 20,
icon: Icon(
item['icon'],
size: 24,
),
activeIcon: Image.asset(
'assets/icons/${item['icon']}',
activeIcon: Icon(
item['active_icon'],
size: 24,
color: AppColors.primary,
width: 20,
height: 20,
),
label: item['label'],
tooltip: '',