|
|
@ -110,49 +110,59 @@ class _CommunityIndexState extends State<CommunityIndex>
|
|
|
|
return BeeScaffold(
|
|
|
|
return BeeScaffold(
|
|
|
|
title: '社区',
|
|
|
|
title: '社区',
|
|
|
|
actions: _listActions(),
|
|
|
|
actions: _listActions(),
|
|
|
|
body: Column(
|
|
|
|
body: Stack(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Material(
|
|
|
|
Column(
|
|
|
|
color: kForeGroundColor,
|
|
|
|
children: [
|
|
|
|
child: PreferredSize(
|
|
|
|
Material(
|
|
|
|
preferredSize: Size.fromHeight(kToolbarHeight),
|
|
|
|
color: kForeGroundColor,
|
|
|
|
child: Align(
|
|
|
|
child: PreferredSize(
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
preferredSize: Size.fromHeight(kToolbarHeight),
|
|
|
|
child: TabBar(
|
|
|
|
child: Align(
|
|
|
|
indicatorPadding: EdgeInsets.zero,
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
controller: _tabController,
|
|
|
|
child: TabBar(
|
|
|
|
isScrollable: true,
|
|
|
|
indicatorPadding: EdgeInsets.zero,
|
|
|
|
indicatorColor: Color(0xffFFd000),
|
|
|
|
controller: _tabController,
|
|
|
|
indicatorWeight: 2.w,
|
|
|
|
isScrollable: true,
|
|
|
|
indicatorSize: TabBarIndicatorSize.label,
|
|
|
|
indicatorColor: Color(0xffFFd000),
|
|
|
|
unselectedLabelStyle: TextStyle(
|
|
|
|
indicatorWeight: 2.w,
|
|
|
|
color: Color(0xFF333333),
|
|
|
|
indicatorSize: TabBarIndicatorSize.label,
|
|
|
|
fontSize: 28.sp,
|
|
|
|
unselectedLabelStyle: TextStyle(
|
|
|
|
),
|
|
|
|
color: Color(0xFF333333),
|
|
|
|
labelStyle: TextStyle(
|
|
|
|
fontSize: 28.sp,
|
|
|
|
fontSize: 28.sp,
|
|
|
|
),
|
|
|
|
color: Color(0xff333333),
|
|
|
|
labelStyle: TextStyle(
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize: 28.sp,
|
|
|
|
),
|
|
|
|
color: Color(0xff333333),
|
|
|
|
tabs: List.generate(
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
tabs.length,
|
|
|
|
),
|
|
|
|
(index) => Tab(
|
|
|
|
tabs: List.generate(
|
|
|
|
text: tabs[index]['name'],
|
|
|
|
tabs.length,
|
|
|
|
|
|
|
|
(index) => Tab(
|
|
|
|
|
|
|
|
text: tabs[index]['name'],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Expanded(
|
|
|
|
),
|
|
|
|
child: TabBarView(
|
|
|
|
Expanded(
|
|
|
|
controller: _tabController,
|
|
|
|
child: TabBarView(
|
|
|
|
children: List.generate(
|
|
|
|
controller: _tabController,
|
|
|
|
tabs.length,
|
|
|
|
children: List.generate(
|
|
|
|
(index) => TabList(index: index),
|
|
|
|
tabs.length,
|
|
|
|
),
|
|
|
|
(index) => TabList(index: index),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
// _floatingActionButton(),
|
|
|
|
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
Positioned(
|
|
|
|
|
|
|
|
right: 30.w,
|
|
|
|
|
|
|
|
bottom: 50.w,
|
|
|
|
|
|
|
|
child: _floatingActionButton(),
|
|
|
|
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|