opt: bar set (#862)

* opt: bar set

* opt: navbar

* fix: type
This commit is contained in:
My-Responsitories
2025-05-21 02:14:08 +08:00
committed by GitHub
parent acb3784071
commit 218e829fd4
19 changed files with 288 additions and 556 deletions

View File

@@ -49,7 +49,7 @@ class _HomePageState extends State<HomePage>
child: TabBar(
controller: _homeController.tabController,
tabs: [
for (var i in _homeController.tabs) Tab(text: i['label'])
for (var i in _homeController.tabs) Tab(text: i.label)
],
isScrollable: true,
dividerColor: Colors.transparent,
@@ -71,8 +71,7 @@ class _HomePageState extends State<HomePage>
Expanded(
child: tabBarView(
controller: _homeController.tabController,
children:
_homeController.tabs.map<Widget>((e) => e['page']).toList(),
children: _homeController.tabs.map((e) => e.page).toList(),
),
),
],