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

@ -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();
} }
@ -88,7 +89,10 @@ class _TaskPageState extends State<TaskPage> with TickerProviderStateMixin {
], ],
)), )),
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,

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

Loading…
Cancel
Save