更新事项页面

hmxc
小赖 4 years ago
parent 86fc5924b5
commit 3537388d43

@ -0,0 +1,18 @@
import 'package:flutter/material.dart';
import 'package:aku_community_manager/tools/screen_tool.dart';
class BusinessCard extends StatefulWidget {
BusinessCard({Key key}) : super(key: key);
@override
_BusinessCardState createState() => _BusinessCardState();
}
class _BusinessCardState extends State<BusinessCard> {
@override
Widget build(BuildContext context) {
return Container(
margin: EdgeInsets.symmetric(horizontal: 32.w),
);
}
}

@ -14,7 +14,7 @@ class BusinessPage extends StatefulWidget {
class _BusinessPageState extends State<BusinessPage> class _BusinessPageState extends State<BusinessPage>
with TickerProviderStateMixin { with TickerProviderStateMixin {
List<String> tabs = ['待处理', '处理中', '已处理', '全部']; List<String> _tabs = ['待处理', '处理中', '已处理', '全部'];
TabController _tabController; TabController _tabController;
@override @override
@ -51,10 +51,23 @@ class _BusinessPageState extends State<BusinessPage>
indicatorColor: AppStyle.primaryColor, indicatorColor: AppStyle.primaryColor,
indicatorSize: TabBarIndicatorSize.label, indicatorSize: TabBarIndicatorSize.label,
controller: _tabController, controller: _tabController,
tabs: tabs.map((e) => Tab(text: e)).toList(), tabs: _tabs.map((e) => Tab(text: e)).toList(),
), ),
preferredSize: Size.fromHeight(88.w), preferredSize: Size.fromHeight(88.w),
), ),
body: TabBarView(
controller: _tabController,
children: _tabs.map((e) => _buildTabPage(_tabs.indexOf(e))).toList(),
),
);
}
Widget _buildTabPage(int index) {
return ListView.builder(
itemBuilder: (context, index) {
return Text(index.toString());
},
itemCount: 50,
); );
} }
} }

Loading…
Cancel
Save