|
|
@ -56,41 +56,41 @@ class _CommunityIndexState extends State<CommunityIndex>
|
|
|
|
];
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
AppBar _appBar() {
|
|
|
|
// AppBar _appBar() {
|
|
|
|
return AppBar(
|
|
|
|
// return AppBar(
|
|
|
|
backgroundColor: Colors.white,
|
|
|
|
// backgroundColor: Colors.white,
|
|
|
|
elevation: 0,
|
|
|
|
// elevation: 0,
|
|
|
|
title: Text("社区"),
|
|
|
|
// title: Text("社区"),
|
|
|
|
centerTitle: true,
|
|
|
|
// centerTitle: true,
|
|
|
|
actions: _listActions(),
|
|
|
|
// actions: _listActions(),
|
|
|
|
bottom: PreferredSize(
|
|
|
|
// bottom: PreferredSize(
|
|
|
|
preferredSize: Size.fromHeight(kToolbarHeight),
|
|
|
|
// preferredSize: Size.fromHeight(kToolbarHeight),
|
|
|
|
child: Align(
|
|
|
|
// child: Align(
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
// alignment: Alignment.centerLeft,
|
|
|
|
child: TabBar(
|
|
|
|
// child: TabBar(
|
|
|
|
controller: _tabController,
|
|
|
|
// controller: _tabController,
|
|
|
|
isScrollable: true,
|
|
|
|
// isScrollable: true,
|
|
|
|
indicatorColor: Color(0xffFFd000),
|
|
|
|
// indicatorColor: Color(0xffFFd000),
|
|
|
|
labelColor: Color(0xff000000),
|
|
|
|
// labelColor: Color(0xff000000),
|
|
|
|
unselectedLabelColor: Color(0xFF3A5160).withOpacity(0.5),
|
|
|
|
// unselectedLabelColor: Color(0xFF3A5160).withOpacity(0.5),
|
|
|
|
indicatorWeight: 2.0,
|
|
|
|
// indicatorWeight: 2.0,
|
|
|
|
indicatorSize: TabBarIndicatorSize.label,
|
|
|
|
// indicatorSize: TabBarIndicatorSize.label,
|
|
|
|
labelStyle: TextStyle(
|
|
|
|
// labelStyle: TextStyle(
|
|
|
|
fontSize: 28.sp,
|
|
|
|
// fontSize: 28.sp,
|
|
|
|
color: Color(0xff333333),
|
|
|
|
// color: Color(0xff333333),
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
// fontWeight: FontWeight.w600,
|
|
|
|
),
|
|
|
|
// ),
|
|
|
|
tabs: List.generate(
|
|
|
|
// tabs: List.generate(
|
|
|
|
tabs.length,
|
|
|
|
// tabs.length,
|
|
|
|
(index) => Tab(
|
|
|
|
// (index) => Tab(
|
|
|
|
text: tabs[index]['name'],
|
|
|
|
// text: tabs[index]['name'],
|
|
|
|
),
|
|
|
|
// ),
|
|
|
|
),
|
|
|
|
// ),
|
|
|
|
),
|
|
|
|
// ),
|
|
|
|
),
|
|
|
|
// ),
|
|
|
|
),
|
|
|
|
// ),
|
|
|
|
);
|
|
|
|
// );
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
FloatingActionButton _floatingActionButton() {
|
|
|
|
FloatingActionButton _floatingActionButton() {
|
|
|
|
return FloatingActionButton(
|
|
|
|
return FloatingActionButton(
|
|
|
|