|
|
|
@ -17,7 +17,8 @@ class GreenManagePage extends StatefulWidget {
|
|
|
|
|
_GreenManagePageState createState() => _GreenManagePageState();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class _GreenManagePageState extends State<GreenManagePage> with TickerProviderStateMixin {
|
|
|
|
|
class _GreenManagePageState extends State<GreenManagePage>
|
|
|
|
|
with TickerProviderStateMixin {
|
|
|
|
|
List<String> _tabs = ['待处理', '未完成', '已完成'];
|
|
|
|
|
TabController _tabController;
|
|
|
|
|
|
|
|
|
@ -32,14 +33,23 @@ class _GreenManagePageState extends State<GreenManagePage> with TickerProviderSt
|
|
|
|
|
_tabController.dispose();
|
|
|
|
|
super.dispose();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return AkuScaffold(
|
|
|
|
|
title: '绿化管理',
|
|
|
|
|
appBarBottom: PreferredSize(preferredSize: Size.fromHeight(88.w), child: AkuTabBar(controller: _tabController, tabs: _tabs)),
|
|
|
|
|
body: TabBarView(controller: _tabController, children: List.generate(_tabs.length, (index) => GreenManageView(
|
|
|
|
|
appBarBottom: PreferredSize(
|
|
|
|
|
preferredSize: Size.fromHeight(88.w),
|
|
|
|
|
child: AkuTabBar(controller: _tabController, tabs: _tabs)),
|
|
|
|
|
body: TabBarView(
|
|
|
|
|
controller: _tabController,
|
|
|
|
|
children: List.generate(
|
|
|
|
|
_tabs.length,
|
|
|
|
|
(index) => GreenManageView(
|
|
|
|
|
index: index,
|
|
|
|
|
),),),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|