|
|
|
@ -1,3 +1,4 @@
|
|
|
|
|
import 'package:aku_new_community/ui/function_and_service/task/dialogs/task_evaluation_dialog.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
|
|
import 'package:flutter_easyrefresh/easy_refresh.dart';
|
|
|
|
@ -70,7 +71,7 @@ class _TaskPageState extends State<TaskPage> with TickerProviderStateMixin {
|
|
|
|
|
children: [
|
|
|
|
|
...TaskMap.taskMode.values
|
|
|
|
|
.mapIndexed((currentValue, index) =>
|
|
|
|
|
_tabCard(currentValue, index))
|
|
|
|
|
_tabCard(currentValue, index))
|
|
|
|
|
.toList(),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
@ -80,7 +81,7 @@ class _TaskPageState extends State<TaskPage> with TickerProviderStateMixin {
|
|
|
|
|
child: Row(
|
|
|
|
|
children: <String>['全部', ...TaskMap.taskType.values]
|
|
|
|
|
.mapIndexed((currentValue, index) =>
|
|
|
|
|
_typeBar(currentValue, index))
|
|
|
|
|
_typeBar(currentValue, index))
|
|
|
|
|
.toList(),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
@ -88,19 +89,19 @@ class _TaskPageState extends State<TaskPage> with TickerProviderStateMixin {
|
|
|
|
|
)),
|
|
|
|
|
body: SafeArea(
|
|
|
|
|
child: TabBarView(controller: _tabController, children: [
|
|
|
|
|
HallView(
|
|
|
|
|
refreshController: _refreshControllers[0],
|
|
|
|
|
type: _currentType,
|
|
|
|
|
),
|
|
|
|
|
MyTakeTaskView(
|
|
|
|
|
refreshController: _refreshControllers[1],
|
|
|
|
|
type: _currentType,
|
|
|
|
|
),
|
|
|
|
|
MyTaskView(
|
|
|
|
|
refreshController: _refreshControllers[2],
|
|
|
|
|
type: _currentType,
|
|
|
|
|
),
|
|
|
|
|
])),
|
|
|
|
|
HallView(
|
|
|
|
|
refreshController: _refreshControllers[0],
|
|
|
|
|
type: _currentType,
|
|
|
|
|
),
|
|
|
|
|
MyTakeTaskView(
|
|
|
|
|
refreshController: _refreshControllers[1],
|
|
|
|
|
type: _currentType,
|
|
|
|
|
),
|
|
|
|
|
MyTaskView(
|
|
|
|
|
refreshController: _refreshControllers[2],
|
|
|
|
|
type: _currentType,
|
|
|
|
|
),
|
|
|
|
|
])),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -143,23 +144,23 @@ class _TaskPageState extends State<TaskPage> with TickerProviderStateMixin {
|
|
|
|
|
color: Colors.transparent,
|
|
|
|
|
child: _currentType == index
|
|
|
|
|
? Container(
|
|
|
|
|
padding: EdgeInsets.symmetric(vertical: 8.w, horizontal: 24.w),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
borderRadius: BorderRadius.circular(30.w),
|
|
|
|
|
color: Color(0xFFFAC058).withOpacity(0.5),
|
|
|
|
|
),
|
|
|
|
|
child: text.text
|
|
|
|
|
.size(24.sp)
|
|
|
|
|
.color(Colors.black.withOpacity(0.65))
|
|
|
|
|
.make(),
|
|
|
|
|
)
|
|
|
|
|
padding: EdgeInsets.symmetric(vertical: 8.w, horizontal: 24.w),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
borderRadius: BorderRadius.circular(30.w),
|
|
|
|
|
color: Color(0xFFFAC058).withOpacity(0.5),
|
|
|
|
|
),
|
|
|
|
|
child: text.text
|
|
|
|
|
.size(24.sp)
|
|
|
|
|
.color(Colors.black.withOpacity(0.65))
|
|
|
|
|
.make(),
|
|
|
|
|
)
|
|
|
|
|
: Container(
|
|
|
|
|
padding: EdgeInsets.symmetric(vertical: 8.w, horizontal: 24.w),
|
|
|
|
|
child: text.text
|
|
|
|
|
.size(24.sp)
|
|
|
|
|
.color(Colors.black.withOpacity(0.45))
|
|
|
|
|
.make(),
|
|
|
|
|
),
|
|
|
|
|
padding: EdgeInsets.symmetric(vertical: 8.w, horizontal: 24.w),
|
|
|
|
|
child: text.text
|
|
|
|
|
.size(24.sp)
|
|
|
|
|
.color(Colors.black.withOpacity(0.45))
|
|
|
|
|
.make(),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|