code format

hmxc
张萌 4 years ago
parent 8f68226fe2
commit dce67e28f3

@ -52,6 +52,7 @@ Map<CHECK_TYPE, String> checkAssetMap = {
CHECK_TYPE.DOOR_AND_WINDOWS: R.ASSETS_MANAGE_WINDOW_PNG, CHECK_TYPE.DOOR_AND_WINDOWS: R.ASSETS_MANAGE_WINDOW_PNG,
CHECK_TYPE.SECURITY: R.ASSETS_MANAGE_SECURITY_PNG, CHECK_TYPE.SECURITY: R.ASSETS_MANAGE_SECURITY_PNG,
}; };
@Deprecated('under should be removed') @Deprecated('under should be removed')
class DecorationModel { class DecorationModel {
DecorationType type; DecorationType type;
@ -81,7 +82,9 @@ class DecorationModel {
this.checkInfomations, this.checkInfomations,
}); });
} }
@Deprecated('under should be removed') @Deprecated('under should be removed')
/// ///
class UserHomeModel { class UserHomeModel {
String plot; String plot;
@ -95,7 +98,9 @@ class UserHomeModel {
this.phone, this.phone,
}); });
} }
@Deprecated('under should be removed') @Deprecated('under should be removed')
/// ///
class DecorationTeamModel { class DecorationTeamModel {
String name; String name;
@ -107,7 +112,9 @@ class DecorationTeamModel {
this.phone, this.phone,
}); });
} }
@Deprecated('under should be removed') @Deprecated('under should be removed')
/// ///
class CycleCheck { class CycleCheck {
FixerModel authPerson; FixerModel authPerson;
@ -129,6 +136,7 @@ class CycleCheck {
this.checkDetails, this.checkDetails,
}); });
} }
@Deprecated('under should be removed') @Deprecated('under should be removed')
class WorkFinishCheck { class WorkFinishCheck {
FixerModel authPerson; FixerModel authPerson;
@ -140,7 +148,9 @@ class WorkFinishCheck {
this.checkDetails, this.checkDetails,
}); });
} }
@Deprecated('under should be removed') @Deprecated('under should be removed')
/// ///
class CheckInfomation { class CheckInfomation {
DateTime checkDate; DateTime checkDate;
@ -162,6 +172,7 @@ class CheckInfomation {
return true; return true;
} }
} }
@Deprecated('under should be removed') @Deprecated('under should be removed')
class CheckDetail { class CheckDetail {
CHECK_TYPE type; CHECK_TYPE type;

@ -86,7 +86,8 @@ class _ApplicationPageState extends State<ApplicationPage>
'包裹管理', R.ASSETS_HOME_PACKAGE_PNG, () => PackagesManagePage()), '包裹管理', R.ASSETS_HOME_PACKAGE_PNG, () => PackagesManagePage()),
AppApplication('钥匙管理', R.ASSETS_HOME_KEY_PNG, () => KeyManagePage()), AppApplication('钥匙管理', R.ASSETS_HOME_KEY_PNG, () => KeyManagePage()),
AppApplication('规程管理', R.ASSETS_HOME_RULES_PNG, () => RulesManagePage()), AppApplication('规程管理', R.ASSETS_HOME_RULES_PNG, () => RulesManagePage()),
AppApplication('卫生管理', R.ASSETS_PLACEHOLDER_WEBP, () => HygienceManagePage()) AppApplication(
'卫生管理', R.ASSETS_PLACEHOLDER_WEBP, () => HygienceManagePage())
]; ];
@override @override

@ -17,7 +17,8 @@ class GreenManagePage extends StatefulWidget {
_GreenManagePageState createState() => _GreenManagePageState(); _GreenManagePageState createState() => _GreenManagePageState();
} }
class _GreenManagePageState extends State<GreenManagePage> with TickerProviderStateMixin { class _GreenManagePageState extends State<GreenManagePage>
with TickerProviderStateMixin {
List<String> _tabs = ['待处理', '未完成', '已完成']; List<String> _tabs = ['待处理', '未完成', '已完成'];
TabController _tabController; TabController _tabController;
@ -32,14 +33,23 @@ class _GreenManagePageState extends State<GreenManagePage> with TickerProviderSt
_tabController.dispose(); _tabController.dispose();
super.dispose(); super.dispose();
} }
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return AkuScaffold( return AkuScaffold(
title: '绿化管理', title: '绿化管理',
appBarBottom: PreferredSize(preferredSize: Size.fromHeight(88.w), child: AkuTabBar(controller: _tabController, tabs: _tabs)), appBarBottom: PreferredSize(
body: TabBarView(controller: _tabController, children: List.generate(_tabs.length, (index) => GreenManageView( preferredSize: Size.fromHeight(88.w),
child: AkuTabBar(controller: _tabController, tabs: _tabs)),
body: TabBarView(
controller: _tabController,
children: List.generate(
_tabs.length,
(index) => GreenManageView(
index: index, index: index,
),),), ),
),
),
); );
} }
} }

@ -16,7 +16,11 @@ class _GreenManageViewState extends State<GreenManageView> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return ListView( return ListView(
children: [GreenManageCard(index: widget.index,)], children: [
GreenManageCard(
index: widget.index,
)
],
); );
} }
} }

@ -17,7 +17,9 @@ class _HygienceManageViewState extends State<HygienceManageView> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return ListView( return ListView(
children: [ children: [
HyginecManageCard(index: widget.index,) HyginecManageCard(
index: widget.index,
)
], ],
); );
} }

@ -84,7 +84,8 @@ class _DecorationManagerCardState extends State<DecorationManagerCard> {
alignment: Alignment.centerRight, alignment: Alignment.centerRight,
child: AkuMaterialButton( child: AkuMaterialButton(
onPressed: () { onPressed: () {
Get.to(DecorationManagerDetailPage(decorationModel: widget.model)); Get.to(
DecorationManagerDetailPage(decorationModel: widget.model));
}, },
height: 64.w, height: 64.w,
minWidth: 160.w, minWidth: 160.w,

@ -61,11 +61,7 @@ class _DecorationManagerDetailStatePage
if (UserTool.userProvider.infoModel.canOperation) { if (UserTool.userProvider.infoModel.canOperation) {
switch (widget.decorationModel.operationStatus) { switch (widget.decorationModel.operationStatus) {
case 1: case 1:
return AkuBottomButton( return AkuBottomButton(title: '立即安排', onTap: () {});
title: '立即安排',
onTap:() {
}
);
break; break;
default: default:
return SizedBox(); return SizedBox();
@ -244,6 +240,7 @@ class _DecorationManagerDetailStatePage
], ],
); );
} }
/// ///
_buildFinishWorkCheck() { _buildFinishWorkCheck() {
return AkuTitleBox( return AkuTitleBox(
@ -293,6 +290,7 @@ class _DecorationManagerDetailStatePage
], ],
); );
} }
/// ///
_buildCycleCheck() { _buildCycleCheck() {
return AkuTitleBox( return AkuTitleBox(
@ -362,9 +360,7 @@ class _DecorationManagerDetailStatePage
Container( Container(
height: 500.w, height: 500.w,
child: CupertinoDatePicker( child: CupertinoDatePicker(
onDateTimeChanged: (dateTime) { onDateTimeChanged: (dateTime) {},
},
), ),
), ),
], ],
@ -453,7 +449,6 @@ class _DecorationManagerDetailStatePage
realValue = 30; realValue = 30;
break; break;
} }
}, },
), ),
), ),
@ -485,14 +480,13 @@ class _DecorationManagerDetailStatePage
CHECK_TYPE.DOOR_AND_WINDOWS, CHECK_TYPE.DOOR_AND_WINDOWS,
CHECK_TYPE.SECURITY, CHECK_TYPE.SECURITY,
], ],
onChange: (details) { onChange: (details) {},
},
canTap: UserTool.userProvider.infoModel.canOperation, canTap: UserTool.userProvider.infoModel.canOperation,
) )
], ],
); );
} }
/// ///
_buildCheckDetail() { _buildCheckDetail() {
return AkuTitleBox( return AkuTitleBox(

Loading…
Cancel
Save