You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
aku_new_community/lib/pages/renovation_manage/renovation_manage_page.dart

52 lines
1.3 KiB

3 years ago
import 'package:flutter/material.dart';
3 years ago
import 'package:aku_new_community/pages/renovation_manage/renovation_manage_view.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:aku_new_community/widget/tab_bar/bee_tab_bar.dart';
class RenovationManagePage extends StatefulWidget {
RenovationManagePage({Key? key}) : super(key: key);
@override
_RenovationManagePageState createState() => _RenovationManagePageState();
}
class _RenovationManagePageState extends State<RenovationManagePage>
with TickerProviderStateMixin {
List<String> _tabs = ['待处理', '处理中', '已完成', '全部'];
late TabController _tabController;
3 years ago
@override
void initState() {
super.initState();
_tabController = TabController(length: _tabs.length, vsync: this);
}
@override
void dispose() {
_tabController.dispose();
super.dispose();
}
@override
Widget build(BuildContext context) {
return BeeScaffold(
title: '装修管理',
appBarBottom: BeeTabBar(
controller: _tabController,
tabs: _tabs,
scrollable: true,
),
body: TabBarView(
controller: _tabController,
children: List.generate(
_tabs.length,
(index) => RenovationManageView(
index: index,
),
),
),
);
}
}