pull/1/head
戴余标 3 years ago
parent e42684dc9e
commit 4b056947f1

@ -40,6 +40,7 @@ class _TaskPageState extends State<TaskPage> with TickerProviderStateMixin {
_refreshControllers.forEach((element) {
element.dispose();
});
_tabController.dispose();
super.dispose();
}
@ -71,7 +72,7 @@ class _TaskPageState extends State<TaskPage> with TickerProviderStateMixin {
children: [
...TaskMap.taskMode.values
.mapIndexed((currentValue, index) =>
_tabCard(currentValue, index))
_tabCard(currentValue, index))
.toList(),
],
),
@ -81,14 +82,17 @@ class _TaskPageState extends State<TaskPage> with TickerProviderStateMixin {
child: Row(
children: <String>['全部', ...TaskMap.taskType.values]
.mapIndexed((currentValue, index) =>
_typeBar(currentValue, index))
_typeBar(currentValue, index))
.toList(),
),
)
],
)),
body: SafeArea(
child: TabBarView(controller: _tabController, children: [
child: TabBarView(
physics: const NeverScrollableScrollPhysics(),
controller: _tabController,
children: [
HallView(
refreshController: _refreshControllers[0],
type: _currentType,
@ -144,23 +148,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(),
),
),
);
}

@ -224,7 +224,10 @@ class _NewAdvicePageState extends State<NewAdvicePage> {
type = _type == 0 ? 3 : 4;
break;
}
addAdvice(type, _files, _editingController.text);
if(userProvider.defaultHouse != null){
addAdvice(type, _files, _editingController.text);
}
BotToast.showText(text: '请选择房屋');
}
cancel();
},

Loading…
Cancel
Save