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