|
|
@ -40,6 +40,7 @@ class _TaskPageState extends State<TaskPage> with TickerProviderStateMixin {
|
|
|
|
_refreshControllers.forEach((element) {
|
|
|
|
_refreshControllers.forEach((element) {
|
|
|
|
element.dispose();
|
|
|
|
element.dispose();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
_tabController.dispose();
|
|
|
|
super.dispose();
|
|
|
|
super.dispose();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -71,7 +72,7 @@ class _TaskPageState extends State<TaskPage> with TickerProviderStateMixin {
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
...TaskMap.taskMode.values
|
|
|
|
...TaskMap.taskMode.values
|
|
|
|
.mapIndexed((currentValue, index) =>
|
|
|
|
.mapIndexed((currentValue, index) =>
|
|
|
|
_tabCard(currentValue, index))
|
|
|
|
_tabCard(currentValue, index))
|
|
|
|
.toList(),
|
|
|
|
.toList(),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -81,14 +82,17 @@ class _TaskPageState extends State<TaskPage> with TickerProviderStateMixin {
|
|
|
|
child: Row(
|
|
|
|
child: Row(
|
|
|
|
children: <String>['全部', ...TaskMap.taskType.values]
|
|
|
|
children: <String>['全部', ...TaskMap.taskType.values]
|
|
|
|
.mapIndexed((currentValue, index) =>
|
|
|
|
.mapIndexed((currentValue, index) =>
|
|
|
|
_typeBar(currentValue, index))
|
|
|
|
_typeBar(currentValue, index))
|
|
|
|
.toList(),
|
|
|
|
.toList(),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
)),
|
|
|
|
body: SafeArea(
|
|
|
|
body: SafeArea(
|
|
|
|
child: TabBarView(controller: _tabController, children: [
|
|
|
|
child: TabBarView(
|
|
|
|
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
|
|
|
controller: _tabController,
|
|
|
|
|
|
|
|
children: [
|
|
|
|
HallView(
|
|
|
|
HallView(
|
|
|
|
refreshController: _refreshControllers[0],
|
|
|
|
refreshController: _refreshControllers[0],
|
|
|
|
type: _currentType,
|
|
|
|
type: _currentType,
|
|
|
@ -144,23 +148,23 @@ class _TaskPageState extends State<TaskPage> with TickerProviderStateMixin {
|
|
|
|
color: Colors.transparent,
|
|
|
|
color: Colors.transparent,
|
|
|
|
child: _currentType == index
|
|
|
|
child: _currentType == index
|
|
|
|
? Container(
|
|
|
|
? Container(
|
|
|
|
padding: EdgeInsets.symmetric(vertical: 8.w, horizontal: 24.w),
|
|
|
|
padding: EdgeInsets.symmetric(vertical: 8.w, horizontal: 24.w),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius: BorderRadius.circular(30.w),
|
|
|
|
borderRadius: BorderRadius.circular(30.w),
|
|
|
|
color: Color(0xFFFAC058).withOpacity(0.5),
|
|
|
|
color: Color(0xFFFAC058).withOpacity(0.5),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: text.text
|
|
|
|
child: text.text
|
|
|
|
.size(24.sp)
|
|
|
|
.size(24.sp)
|
|
|
|
.color(Colors.black.withOpacity(0.65))
|
|
|
|
.color(Colors.black.withOpacity(0.65))
|
|
|
|
.make(),
|
|
|
|
.make(),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
: Container(
|
|
|
|
: Container(
|
|
|
|
padding: EdgeInsets.symmetric(vertical: 8.w, horizontal: 24.w),
|
|
|
|
padding: EdgeInsets.symmetric(vertical: 8.w, horizontal: 24.w),
|
|
|
|
child: text.text
|
|
|
|
child: text.text
|
|
|
|
.size(24.sp)
|
|
|
|
.size(24.sp)
|
|
|
|
.color(Colors.black.withOpacity(0.45))
|
|
|
|
.color(Colors.black.withOpacity(0.45))
|
|
|
|
.make(),
|
|
|
|
.make(),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|