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

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

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

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

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

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

Loading…
Cancel
Save