master
张萌 3 years ago
parent 5d67f12c3e
commit dd0abc7e05

@ -26,11 +26,20 @@ class SAASAPI {
static _Message message = _Message(); static _Message message = _Message();
static _WorkOrder workOrder = _WorkOrder(); static _WorkOrder workOrder = _WorkOrder();
static _HouseHoldAudit householdAudit = _HouseHoldAudit(); static _HouseHoldAudit householdAudit = _HouseHoldAudit();
static _Home home = _Home();
/// ///
static _OtherApi other = _OtherApi(); static _OtherApi other = _OtherApi();
} }
class _Home {
///
String get todoList => '/butlerApp/user/frontPage/pendingList';
///
String get statusNum => '/butlerApp/user/frontPage/statusNumBar';
}
class _HouseHoldAudit { class _HouseHoldAudit {
/// ///
String get list => '/butlerApp/user/review/list'; String get list => '/butlerApp/user/review/list';

@ -3,128 +3,257 @@
/// FlutterGen /// FlutterGen
/// ***************************************************** /// *****************************************************
// ignore_for_file: directives_ordering,unnecessary_import
import 'package:flutter/widgets.dart'; import 'package:flutter/widgets.dart';
class $AssetsHomeGen { class $AssetsHomeGen {
const $AssetsHomeGen(); const $AssetsHomeGen();
/// File path: assets/home/app_alarm.png
AssetGenImage get appAlarm => AssetGenImage get appAlarm =>
const AssetGenImage('assets/home/app_alarm.png'); const AssetGenImage('assets/home/app_alarm.png');
/// File path: assets/home/bee_task.png
AssetGenImage get beeTask => const AssetGenImage('assets/home/bee_task.png'); AssetGenImage get beeTask => const AssetGenImage('assets/home/bee_task.png');
/// File path: assets/home/clock_in_out.png
AssetGenImage get clockInOut => AssetGenImage get clockInOut =>
const AssetGenImage('assets/home/clock_in_out.png'); const AssetGenImage('assets/home/clock_in_out.png');
/// File path: assets/home/device_alarm.png
AssetGenImage get deviceAlarm => AssetGenImage get deviceAlarm =>
const AssetGenImage('assets/home/device_alarm.png'); const AssetGenImage('assets/home/device_alarm.png');
/// File path: assets/home/facilities.png
AssetGenImage get facilities => AssetGenImage get facilities =>
const AssetGenImage('assets/home/facilities.png'); const AssetGenImage('assets/home/facilities.png');
/// File path: assets/home/fire_alarm.png
AssetGenImage get fireAlarm => AssetGenImage get fireAlarm =>
const AssetGenImage('assets/home/fire_alarm.png'); const AssetGenImage('assets/home/fire_alarm.png');
/// File path: assets/home/home_back.png
AssetGenImage get homeBack => AssetGenImage get homeBack =>
const AssetGenImage('assets/home/home_back.png'); const AssetGenImage('assets/home/home_back.png');
/// File path: assets/home/home_head.png
AssetGenImage get homeHead => AssetGenImage get homeHead =>
const AssetGenImage('assets/home/home_head.png'); const AssetGenImage('assets/home/home_head.png');
/// File path: assets/home/house_keeping.png
AssetGenImage get houseKeeping => AssetGenImage get houseKeeping =>
const AssetGenImage('assets/home/house_keeping.png'); const AssetGenImage('assets/home/house_keeping.png');
/// File path: assets/home/hygienice.png
AssetGenImage get hygienice => AssetGenImage get hygienice =>
const AssetGenImage('assets/home/hygienice.png'); const AssetGenImage('assets/home/hygienice.png');
/// File path: assets/home/ic_Patrol.png
AssetGenImage get icPatrol => AssetGenImage get icPatrol =>
const AssetGenImage('assets/home/ic_Patrol.png'); const AssetGenImage('assets/home/ic_Patrol.png');
/// File path: assets/home/ic_activity.png
AssetGenImage get icActivity => AssetGenImage get icActivity =>
const AssetGenImage('assets/home/ic_activity.png'); const AssetGenImage('assets/home/ic_activity.png');
/// File path: assets/home/ic_all.png
AssetGenImage get icAll => const AssetGenImage('assets/home/ic_all.png'); AssetGenImage get icAll => const AssetGenImage('assets/home/ic_all.png');
/// File path: assets/home/ic_article.png
AssetGenImage get icArticle => AssetGenImage get icArticle =>
const AssetGenImage('assets/home/ic_article.png'); const AssetGenImage('assets/home/ic_article.png');
/// File path: assets/home/ic_borrow.png
AssetGenImage get icBorrow => AssetGenImage get icBorrow =>
const AssetGenImage('assets/home/ic_borrow.png'); const AssetGenImage('assets/home/ic_borrow.png');
/// File path: assets/home/ic_decoration.png
AssetGenImage get icDecoration => AssetGenImage get icDecoration =>
const AssetGenImage('assets/home/ic_decoration.png'); const AssetGenImage('assets/home/ic_decoration.png');
/// File path: assets/home/ic_facilities.png
AssetGenImage get icFacilities => AssetGenImage get icFacilities =>
const AssetGenImage('assets/home/ic_facilities.png'); const AssetGenImage('assets/home/ic_facilities.png');
/// File path: assets/home/ic_greening.png
AssetGenImage get icGreening => AssetGenImage get icGreening =>
const AssetGenImage('assets/home/ic_greening.png'); const AssetGenImage('assets/home/ic_greening.png');
/// File path: assets/home/ic_news.png
AssetGenImage get icNews => const AssetGenImage('assets/home/ic_news.png'); AssetGenImage get icNews => const AssetGenImage('assets/home/ic_news.png');
/// File path: assets/home/ic_police.png
AssetGenImage get icPolice => AssetGenImage get icPolice =>
const AssetGenImage('assets/home/ic_police.png'); const AssetGenImage('assets/home/ic_police.png');
/// File path: assets/home/ic_scan.png
AssetGenImage get icScan => const AssetGenImage('assets/home/ic_scan.png'); AssetGenImage get icScan => const AssetGenImage('assets/home/ic_scan.png');
/// File path: assets/home/ic_search.png
AssetGenImage get icSearch => AssetGenImage get icSearch =>
const AssetGenImage('assets/home/ic_search.png'); const AssetGenImage('assets/home/ic_search.png');
/// File path: assets/home/ic_service.png
AssetGenImage get icService => AssetGenImage get icService =>
const AssetGenImage('assets/home/ic_service.png'); const AssetGenImage('assets/home/ic_service.png');
/// File path: assets/home/ic_visitors.png
AssetGenImage get icVisitors => AssetGenImage get icVisitors =>
const AssetGenImage('assets/home/ic_visitors.png'); const AssetGenImage('assets/home/ic_visitors.png');
/// File path: assets/home/interview.png
AssetGenImage get interview => AssetGenImage get interview =>
const AssetGenImage('assets/home/interview.png'); const AssetGenImage('assets/home/interview.png');
/// File path: assets/home/key.png
AssetGenImage get key => const AssetGenImage('assets/home/key.png'); AssetGenImage get key => const AssetGenImage('assets/home/key.png');
/// File path: assets/home/message.png
AssetGenImage get message => const AssetGenImage('assets/home/message.png'); AssetGenImage get message => const AssetGenImage('assets/home/message.png');
/// File path: assets/home/nearby_pet.png
AssetGenImage get nearbyPet => AssetGenImage get nearbyPet =>
const AssetGenImage('assets/home/nearby_pet.png'); const AssetGenImage('assets/home/nearby_pet.png');
/// File path: assets/home/nearby_service.png
AssetGenImage get nearbyService => AssetGenImage get nearbyService =>
const AssetGenImage('assets/home/nearby_service.png'); const AssetGenImage('assets/home/nearby_service.png');
/// File path: assets/home/package.png
AssetGenImage get package => const AssetGenImage('assets/home/package.png'); AssetGenImage get package => const AssetGenImage('assets/home/package.png');
/// File path: assets/home/provide_aged.png
AssetGenImage get provideAged => AssetGenImage get provideAged =>
const AssetGenImage('assets/home/provide_aged.png'); const AssetGenImage('assets/home/provide_aged.png');
/// File path: assets/home/rules.png
AssetGenImage get rules => const AssetGenImage('assets/home/rules.png'); AssetGenImage get rules => const AssetGenImage('assets/home/rules.png');
/// File path: assets/home/second_hand_market.png
AssetGenImage get secondHandMarket => AssetGenImage get secondHandMarket =>
const AssetGenImage('assets/home/second_hand_market.png'); const AssetGenImage('assets/home/second_hand_market.png');
/// File path: assets/home/share_park.png
AssetGenImage get sharePark => AssetGenImage get sharePark =>
const AssetGenImage('assets/home/share_park.png'); const AssetGenImage('assets/home/share_park.png');
/// File path: assets/home/shopping_mall.png
AssetGenImage get shoppingMall => AssetGenImage get shoppingMall =>
const AssetGenImage('assets/home/shopping_mall.png'); const AssetGenImage('assets/home/shopping_mall.png');
/// File path: assets/home/sos.png
AssetGenImage get sos => const AssetGenImage('assets/home/sos.png'); AssetGenImage get sos => const AssetGenImage('assets/home/sos.png');
} }
class $AssetsIconsGen { class $AssetsIconsGen {
const $AssetsIconsGen(); const $AssetsIconsGen();
/// File path: assets/icons/alarm_clock.png
AssetGenImage get alarmClock => AssetGenImage get alarmClock =>
const AssetGenImage('assets/icons/alarm_clock.png'); const AssetGenImage('assets/icons/alarm_clock.png');
/// File path: assets/icons/camera.png
AssetGenImage get camera => const AssetGenImage('assets/icons/camera.png'); AssetGenImage get camera => const AssetGenImage('assets/icons/camera.png');
/// File path: assets/icons/cancel_task.png
AssetGenImage get cancelTask => AssetGenImage get cancelTask =>
const AssetGenImage('assets/icons/cancel_task.png'); const AssetGenImage('assets/icons/cancel_task.png');
/// File path: assets/icons/clock_circle.png
AssetGenImage get clockCircle => AssetGenImage get clockCircle =>
const AssetGenImage('assets/icons/clock_circle.png'); const AssetGenImage('assets/icons/clock_circle.png');
/// File path: assets/icons/connect.png
AssetGenImage get connect => const AssetGenImage('assets/icons/connect.png'); AssetGenImage get connect => const AssetGenImage('assets/icons/connect.png');
/// File path: assets/icons/copy.png
AssetGenImage get copy => const AssetGenImage('assets/icons/copy.png'); AssetGenImage get copy => const AssetGenImage('assets/icons/copy.png');
/// File path: assets/icons/dissatisfied.png
AssetGenImage get dissatisfied => AssetGenImage get dissatisfied =>
const AssetGenImage('assets/icons/dissatisfied.png'); const AssetGenImage('assets/icons/dissatisfied.png');
/// File path: assets/icons/edit.png
AssetGenImage get edit => const AssetGenImage('assets/icons/edit.png'); AssetGenImage get edit => const AssetGenImage('assets/icons/edit.png');
/// File path: assets/icons/environment.png
AssetGenImage get environment => AssetGenImage get environment =>
const AssetGenImage('assets/icons/environment.png'); const AssetGenImage('assets/icons/environment.png');
/// File path: assets/icons/examining.png
AssetGenImage get examining => AssetGenImage get examining =>
const AssetGenImage('assets/icons/examining.png'); const AssetGenImage('assets/icons/examining.png');
/// File path: assets/icons/finish_order.png
AssetGenImage get finishOrder => AssetGenImage get finishOrder =>
const AssetGenImage('assets/icons/finish_order.png'); const AssetGenImage('assets/icons/finish_order.png');
/// File path: assets/icons/normal.png
AssetGenImage get normal => const AssetGenImage('assets/icons/normal.png'); AssetGenImage get normal => const AssetGenImage('assets/icons/normal.png');
/// File path: assets/icons/pass.png
AssetGenImage get pass => const AssetGenImage('assets/icons/pass.png'); AssetGenImage get pass => const AssetGenImage('assets/icons/pass.png');
/// File path: assets/icons/phone.png
AssetGenImage get phone => const AssetGenImage('assets/icons/phone.png'); AssetGenImage get phone => const AssetGenImage('assets/icons/phone.png');
/// File path: assets/icons/phone_circle.png
AssetGenImage get phoneCircle => AssetGenImage get phoneCircle =>
const AssetGenImage('assets/icons/phone_circle.png'); const AssetGenImage('assets/icons/phone_circle.png');
/// File path: assets/icons/record.png
AssetGenImage get record => const AssetGenImage('assets/icons/record.png'); AssetGenImage get record => const AssetGenImage('assets/icons/record.png');
/// File path: assets/icons/reject.png
AssetGenImage get reject => const AssetGenImage('assets/icons/reject.png'); AssetGenImage get reject => const AssetGenImage('assets/icons/reject.png');
/// File path: assets/icons/reward.png
AssetGenImage get reward => const AssetGenImage('assets/icons/reward.png'); AssetGenImage get reward => const AssetGenImage('assets/icons/reward.png');
/// File path: assets/icons/satisfied.png
AssetGenImage get satisfied => AssetGenImage get satisfied =>
const AssetGenImage('assets/icons/satisfied.png'); const AssetGenImage('assets/icons/satisfied.png');
/// File path: assets/icons/tag.png
AssetGenImage get tag => const AssetGenImage('assets/icons/tag.png'); AssetGenImage get tag => const AssetGenImage('assets/icons/tag.png');
/// File path: assets/icons/task_location.png
AssetGenImage get taskLocation => AssetGenImage get taskLocation =>
const AssetGenImage('assets/icons/task_location.png'); const AssetGenImage('assets/icons/task_location.png');
/// File path: assets/icons/watch.png
AssetGenImage get watch => const AssetGenImage('assets/icons/watch.png'); AssetGenImage get watch => const AssetGenImage('assets/icons/watch.png');
} }
class $AssetsInspectionGen { class $AssetsInspectionGen {
const $AssetsInspectionGen(); const $AssetsInspectionGen();
/// File path: assets/inspection/ic_date.png
AssetGenImage get icDate => AssetGenImage get icDate =>
const AssetGenImage('assets/inspection/ic_date.png'); const AssetGenImage('assets/inspection/ic_date.png');
/// File path: assets/inspection/ic_inspection_name.png
AssetGenImage get icInspectionName => AssetGenImage get icInspectionName =>
const AssetGenImage('assets/inspection/ic_inspection_name.png'); const AssetGenImage('assets/inspection/ic_inspection_name.png');
/// File path: assets/inspection/ic_pattern.png
AssetGenImage get icPattern => AssetGenImage get icPattern =>
const AssetGenImage('assets/inspection/ic_pattern.png'); const AssetGenImage('assets/inspection/ic_pattern.png');
/// File path: assets/inspection/ic_station.png
AssetGenImage get icStation => AssetGenImage get icStation =>
const AssetGenImage('assets/inspection/ic_station.png'); const AssetGenImage('assets/inspection/ic_station.png');
/// File path: assets/inspection/ic_way.png
AssetGenImage get icWay => AssetGenImage get icWay =>
const AssetGenImage('assets/inspection/ic_way.png'); const AssetGenImage('assets/inspection/ic_way.png');
/// File path: assets/inspection/ic_xunjian.png
AssetGenImage get icXunjian => AssetGenImage get icXunjian =>
const AssetGenImage('assets/inspection/ic_xunjian.png'); const AssetGenImage('assets/inspection/ic_xunjian.png');
/// File path: assets/inspection/inspection_station.png
AssetGenImage get inspectionStation => AssetGenImage get inspectionStation =>
const AssetGenImage('assets/inspection/inspection_station.png'); const AssetGenImage('assets/inspection/inspection_station.png');
} }
@ -132,72 +261,156 @@ class $AssetsInspectionGen {
class $AssetsManageGen { class $AssetsManageGen {
const $AssetsManageGen(); const $AssetsManageGen();
/// File path: assets/manage/add.png
AssetGenImage get add => const AssetGenImage('assets/manage/add.png'); AssetGenImage get add => const AssetGenImage('assets/manage/add.png');
/// File path: assets/manage/address.png
AssetGenImage get address => const AssetGenImage('assets/manage/address.png'); AssetGenImage get address => const AssetGenImage('assets/manage/address.png');
/// File path: assets/manage/article.png
AssetGenImage get article => const AssetGenImage('assets/manage/article.png'); AssetGenImage get article => const AssetGenImage('assets/manage/article.png');
/// File path: assets/manage/borrow.png
AssetGenImage get borrow => const AssetGenImage('assets/manage/borrow.png'); AssetGenImage get borrow => const AssetGenImage('assets/manage/borrow.png');
/// File path: assets/manage/check.png
AssetGenImage get check => const AssetGenImage('assets/manage/check.png'); AssetGenImage get check => const AssetGenImage('assets/manage/check.png');
/// File path: assets/manage/circuit.png
AssetGenImage get circuit => const AssetGenImage('assets/manage/circuit.png'); AssetGenImage get circuit => const AssetGenImage('assets/manage/circuit.png');
/// File path: assets/manage/clock.png
AssetGenImage get clock => const AssetGenImage('assets/manage/clock.png'); AssetGenImage get clock => const AssetGenImage('assets/manage/clock.png');
/// File path: assets/manage/decoration.png
AssetGenImage get decoration => AssetGenImage get decoration =>
const AssetGenImage('assets/manage/decoration.png'); const AssetGenImage('assets/manage/decoration.png');
/// File path: assets/manage/dingwei.png
AssetGenImage get dingwei => const AssetGenImage('assets/manage/dingwei.png'); AssetGenImage get dingwei => const AssetGenImage('assets/manage/dingwei.png');
/// File path: assets/manage/estate.png
AssetGenImage get estate => const AssetGenImage('assets/manage/estate.png'); AssetGenImage get estate => const AssetGenImage('assets/manage/estate.png');
/// File path: assets/manage/home.png
AssetGenImage get home => const AssetGenImage('assets/manage/home.png'); AssetGenImage get home => const AssetGenImage('assets/manage/home.png');
/// File path: assets/manage/ic_announce.png
AssetGenImage get icAnnounce => AssetGenImage get icAnnounce =>
const AssetGenImage('assets/manage/ic_announce.png'); const AssetGenImage('assets/manage/ic_announce.png');
/// File path: assets/manage/ic_car.png
AssetGenImage get icCar => const AssetGenImage('assets/manage/ic_car.png'); AssetGenImage get icCar => const AssetGenImage('assets/manage/ic_car.png');
/// File path: assets/manage/ic_daofang.png
AssetGenImage get icDaofang => AssetGenImage get icDaofang =>
const AssetGenImage('assets/manage/ic_daofang.png'); const AssetGenImage('assets/manage/ic_daofang.png');
/// File path: assets/manage/ic_guoqi.png
AssetGenImage get icGuoqi => AssetGenImage get icGuoqi =>
const AssetGenImage('assets/manage/ic_guoqi.png'); const AssetGenImage('assets/manage/ic_guoqi.png');
/// File path: assets/manage/ic_image.png
AssetGenImage get icImage => AssetGenImage get icImage =>
const AssetGenImage('assets/manage/ic_image.png'); const AssetGenImage('assets/manage/ic_image.png');
/// File path: assets/manage/ic_renwu.png
AssetGenImage get icRenwu => AssetGenImage get icRenwu =>
const AssetGenImage('assets/manage/ic_renwu.png'); const AssetGenImage('assets/manage/ic_renwu.png');
/// File path: assets/manage/ic_time.png
AssetGenImage get icTime => const AssetGenImage('assets/manage/ic_time.png'); AssetGenImage get icTime => const AssetGenImage('assets/manage/ic_time.png');
/// File path: assets/manage/ic_wancheng.png
AssetGenImage get icWancheng => AssetGenImage get icWancheng =>
const AssetGenImage('assets/manage/ic_wancheng.png'); const AssetGenImage('assets/manage/ic_wancheng.png');
/// File path: assets/manage/ic_weidao.png
AssetGenImage get icWeidao => AssetGenImage get icWeidao =>
const AssetGenImage('assets/manage/ic_weidao.png'); const AssetGenImage('assets/manage/ic_weidao.png');
/// File path: assets/manage/ic_zhuangxiu.png
AssetGenImage get icZhuangxiu => AssetGenImage get icZhuangxiu =>
const AssetGenImage('assets/manage/ic_zhuangxiu.png'); const AssetGenImage('assets/manage/ic_zhuangxiu.png');
/// File path: assets/manage/ic_zuofei.png
AssetGenImage get icZuofei => AssetGenImage get icZuofei =>
const AssetGenImage('assets/manage/ic_zuofei.png'); const AssetGenImage('assets/manage/ic_zuofei.png');
/// File path: assets/manage/info.png
AssetGenImage get info => const AssetGenImage('assets/manage/info.png'); AssetGenImage get info => const AssetGenImage('assets/manage/info.png');
/// File path: assets/manage/key.png
AssetGenImage get key => const AssetGenImage('assets/manage/key.png'); AssetGenImage get key => const AssetGenImage('assets/manage/key.png');
/// File path: assets/manage/location.png
AssetGenImage get location => AssetGenImage get location =>
const AssetGenImage('assets/manage/location.png'); const AssetGenImage('assets/manage/location.png');
/// File path: assets/manage/lock.png
AssetGenImage get lock => const AssetGenImage('assets/manage/lock.png'); AssetGenImage get lock => const AssetGenImage('assets/manage/lock.png');
/// File path: assets/manage/passed.png
AssetGenImage get passed => const AssetGenImage('assets/manage/passed.png'); AssetGenImage get passed => const AssetGenImage('assets/manage/passed.png');
/// File path: assets/manage/police.png
AssetGenImage get police => const AssetGenImage('assets/manage/police.png'); AssetGenImage get police => const AssetGenImage('assets/manage/police.png');
/// File path: assets/manage/rejected.png
AssetGenImage get rejected => AssetGenImage get rejected =>
const AssetGenImage('assets/manage/rejected.png'); const AssetGenImage('assets/manage/rejected.png');
/// File path: assets/manage/remaining.png
AssetGenImage get remaining => AssetGenImage get remaining =>
const AssetGenImage('assets/manage/remaining.png'); const AssetGenImage('assets/manage/remaining.png');
/// File path: assets/manage/security.png
AssetGenImage get security => AssetGenImage get security =>
const AssetGenImage('assets/manage/security.png'); const AssetGenImage('assets/manage/security.png');
/// File path: assets/manage/status.png
AssetGenImage get status => const AssetGenImage('assets/manage/status.png'); AssetGenImage get status => const AssetGenImage('assets/manage/status.png');
/// File path: assets/manage/submit_success.png
AssetGenImage get submitSuccess => AssetGenImage get submitSuccess =>
const AssetGenImage('assets/manage/submit_success.png'); const AssetGenImage('assets/manage/submit_success.png');
/// File path: assets/manage/wall.png
AssetGenImage get wall => const AssetGenImage('assets/manage/wall.png'); AssetGenImage get wall => const AssetGenImage('assets/manage/wall.png');
/// File path: assets/manage/warning.png
AssetGenImage get warning => const AssetGenImage('assets/manage/warning.png'); AssetGenImage get warning => const AssetGenImage('assets/manage/warning.png');
/// File path: assets/manage/waterway.png
AssetGenImage get waterway => AssetGenImage get waterway =>
const AssetGenImage('assets/manage/waterway.png'); const AssetGenImage('assets/manage/waterway.png');
/// File path: assets/manage/window.png
AssetGenImage get window => const AssetGenImage('assets/manage/window.png'); AssetGenImage get window => const AssetGenImage('assets/manage/window.png');
} }
class $AssetsMessageGen { class $AssetsMessageGen {
const $AssetsMessageGen(); const $AssetsMessageGen();
/// File path: assets/message/ic_area.png
AssetGenImage get icArea => const AssetGenImage('assets/message/ic_area.png'); AssetGenImage get icArea => const AssetGenImage('assets/message/ic_area.png');
/// File path: assets/message/ic_people.png
AssetGenImage get icPeople => AssetGenImage get icPeople =>
const AssetGenImage('assets/message/ic_people.png'); const AssetGenImage('assets/message/ic_people.png');
/// File path: assets/message/ic_phone.png
AssetGenImage get icPhone => AssetGenImage get icPhone =>
const AssetGenImage('assets/message/ic_phone.png'); const AssetGenImage('assets/message/ic_phone.png');
/// File path: assets/message/ic_pinglun.png
AssetGenImage get icPinglun => AssetGenImage get icPinglun =>
const AssetGenImage('assets/message/ic_pinglun.png'); const AssetGenImage('assets/message/ic_pinglun.png');
/// File path: assets/message/ic_star.png
AssetGenImage get icStar => const AssetGenImage('assets/message/ic_star.png'); AssetGenImage get icStar => const AssetGenImage('assets/message/ic_star.png');
/// File path: assets/message/ic_tongzhi.png
AssetGenImage get icTongzhi => AssetGenImage get icTongzhi =>
const AssetGenImage('assets/message/ic_tongzhi.png'); const AssetGenImage('assets/message/ic_tongzhi.png');
} }
@ -205,48 +418,89 @@ class $AssetsMessageGen {
class $AssetsNewIconGen { class $AssetsNewIconGen {
const $AssetsNewIconGen(); const $AssetsNewIconGen();
/// File path: assets/newIcon/avatar_placeholder.png
AssetGenImage get avatarPlaceholder => AssetGenImage get avatarPlaceholder =>
const AssetGenImage('assets/newIcon/avatar_placeholder.png'); const AssetGenImage('assets/newIcon/avatar_placeholder.png');
/// File path: assets/newIcon/splash.png
AssetGenImage get splash => const AssetGenImage('assets/newIcon/splash.png'); AssetGenImage get splash => const AssetGenImage('assets/newIcon/splash.png');
} }
class $AssetsOutdoorGen { class $AssetsOutdoorGen {
const $AssetsOutdoorGen(); const $AssetsOutdoorGen();
/// File path: assets/outdoor/ic_address.png
AssetGenImage get icAddress => AssetGenImage get icAddress =>
const AssetGenImage('assets/outdoor/ic_address.png'); const AssetGenImage('assets/outdoor/ic_address.png');
/// File path: assets/outdoor/ic_chuhu.png
AssetGenImage get icChuhu => AssetGenImage get icChuhu =>
const AssetGenImage('assets/outdoor/ic_chuhu.png'); const AssetGenImage('assets/outdoor/ic_chuhu.png');
/// File path: assets/outdoor/ic_goout.png
AssetGenImage get icGoout => AssetGenImage get icGoout =>
const AssetGenImage('assets/outdoor/ic_goout.png'); const AssetGenImage('assets/outdoor/ic_goout.png');
/// File path: assets/outdoor/ic_home.png
AssetGenImage get icHome => const AssetGenImage('assets/outdoor/ic_home.png'); AssetGenImage get icHome => const AssetGenImage('assets/outdoor/ic_home.png');
/// File path: assets/outdoor/ic_image.png
AssetGenImage get icImage => AssetGenImage get icImage =>
const AssetGenImage('assets/outdoor/ic_image.png'); const AssetGenImage('assets/outdoor/ic_image.png');
/// File path: assets/outdoor/ic_people.png
AssetGenImage get icPeople => AssetGenImage get icPeople =>
const AssetGenImage('assets/outdoor/ic_people.png'); const AssetGenImage('assets/outdoor/ic_people.png');
/// File path: assets/outdoor/ic_phoneblue.png
AssetGenImage get icPhoneblue => AssetGenImage get icPhoneblue =>
const AssetGenImage('assets/outdoor/ic_phoneblue.png'); const AssetGenImage('assets/outdoor/ic_phoneblue.png');
/// File path: assets/outdoor/ic_time.png
AssetGenImage get icTime => const AssetGenImage('assets/outdoor/ic_time.png'); AssetGenImage get icTime => const AssetGenImage('assets/outdoor/ic_time.png');
/// File path: assets/outdoor/ic_transport.png
AssetGenImage get icTransport => AssetGenImage get icTransport =>
const AssetGenImage('assets/outdoor/ic_transport.png'); const AssetGenImage('assets/outdoor/ic_transport.png');
/// File path: assets/outdoor/ic_weight.png
AssetGenImage get icWeight => AssetGenImage get icWeight =>
const AssetGenImage('assets/outdoor/ic_weight.png'); const AssetGenImage('assets/outdoor/ic_weight.png');
/// File path: assets/outdoor/item2.png
AssetGenImage get item2 => const AssetGenImage('assets/outdoor/item2.png'); AssetGenImage get item2 => const AssetGenImage('assets/outdoor/item2.png');
/// File path: assets/outdoor/item3.png
AssetGenImage get item3 => const AssetGenImage('assets/outdoor/item3.png'); AssetGenImage get item3 => const AssetGenImage('assets/outdoor/item3.png');
/// File path: assets/outdoor/itme1.png
AssetGenImage get itme1 => const AssetGenImage('assets/outdoor/itme1.png'); AssetGenImage get itme1 => const AssetGenImage('assets/outdoor/itme1.png');
} }
class $AssetsStaticFixGen { class $AssetsStaticFixGen {
const $AssetsStaticFixGen(); const $AssetsStaticFixGen();
/// File path: assets/static_fix/air1.png
AssetGenImage get air1 => const AssetGenImage('assets/static_fix/air1.png'); AssetGenImage get air1 => const AssetGenImage('assets/static_fix/air1.png');
/// File path: assets/static_fix/air2.png
AssetGenImage get air2 => const AssetGenImage('assets/static_fix/air2.png'); AssetGenImage get air2 => const AssetGenImage('assets/static_fix/air2.png');
/// File path: assets/static_fix/food.png
AssetGenImage get food => const AssetGenImage('assets/static_fix/food.png'); AssetGenImage get food => const AssetGenImage('assets/static_fix/food.png');
/// File path: assets/static_fix/food2.png
AssetGenImage get food2 => const AssetGenImage('assets/static_fix/food2.png'); AssetGenImage get food2 => const AssetGenImage('assets/static_fix/food2.png');
/// File path: assets/static_fix/light1.png
AssetGenImage get light1 => AssetGenImage get light1 =>
const AssetGenImage('assets/static_fix/light1.png'); const AssetGenImage('assets/static_fix/light1.png');
/// File path: assets/static_fix/light2.png
AssetGenImage get light2 => AssetGenImage get light2 =>
const AssetGenImage('assets/static_fix/light2.png'); const AssetGenImage('assets/static_fix/light2.png');
/// File path: assets/static_fix/light3.png
AssetGenImage get light3 => AssetGenImage get light3 =>
const AssetGenImage('assets/static_fix/light3.png'); const AssetGenImage('assets/static_fix/light3.png');
} }
@ -254,15 +508,30 @@ class $AssetsStaticFixGen {
class $AssetsStaticTempGen { class $AssetsStaticTempGen {
const $AssetsStaticTempGen(); const $AssetsStaticTempGen();
/// File path: assets/static_temp/drill.png
AssetGenImage get drill => AssetGenImage get drill =>
const AssetGenImage('assets/static_temp/drill.png'); const AssetGenImage('assets/static_temp/drill.png');
/// File path: assets/static_temp/f1.webp
AssetGenImage get f1 => const AssetGenImage('assets/static_temp/f1.webp'); AssetGenImage get f1 => const AssetGenImage('assets/static_temp/f1.webp');
/// File path: assets/static_temp/f2.webp
AssetGenImage get f2 => const AssetGenImage('assets/static_temp/f2.webp'); AssetGenImage get f2 => const AssetGenImage('assets/static_temp/f2.webp');
/// File path: assets/static_temp/f3.webp
AssetGenImage get f3 => const AssetGenImage('assets/static_temp/f3.webp'); AssetGenImage get f3 => const AssetGenImage('assets/static_temp/f3.webp');
/// File path: assets/static_temp/f4.webp
AssetGenImage get f4 => const AssetGenImage('assets/static_temp/f4.webp'); AssetGenImage get f4 => const AssetGenImage('assets/static_temp/f4.webp');
/// File path: assets/static_temp/f5.webp
AssetGenImage get f5 => const AssetGenImage('assets/static_temp/f5.webp'); AssetGenImage get f5 => const AssetGenImage('assets/static_temp/f5.webp');
/// File path: assets/static_temp/hammer.png
AssetGenImage get hammer => AssetGenImage get hammer =>
const AssetGenImage('assets/static_temp/hammer.png'); const AssetGenImage('assets/static_temp/hammer.png');
/// File path: assets/static_temp/ladder.png
AssetGenImage get ladder => AssetGenImage get ladder =>
const AssetGenImage('assets/static_temp/ladder.png'); const AssetGenImage('assets/static_temp/ladder.png');
} }
@ -270,9 +539,14 @@ class $AssetsStaticTempGen {
class $AssetsUserGen { class $AssetsUserGen {
const $AssetsUserGen(); const $AssetsUserGen();
/// File path: assets/user/ic_kefu.png
AssetGenImage get icKefu => const AssetGenImage('assets/user/ic_kefu.png'); AssetGenImage get icKefu => const AssetGenImage('assets/user/ic_kefu.png');
/// File path: assets/user/ic_person.png
AssetGenImage get icPerson => AssetGenImage get icPerson =>
const AssetGenImage('assets/user/ic_person.png'); const AssetGenImage('assets/user/ic_person.png');
/// File path: assets/user/ic_setup.png
AssetGenImage get icSetup => const AssetGenImage('assets/user/ic_setup.png'); AssetGenImage get icSetup => const AssetGenImage('assets/user/ic_setup.png');
} }

@ -3,8 +3,11 @@
/// FlutterGen /// FlutterGen
/// ***************************************************** /// *****************************************************
// ignore_for_file: directives_ordering,unnecessary_import
class FontFamily { class FontFamily {
FontFamily._(); FontFamily._();
/// Font family: Bebas
static const String bebas = 'Bebas'; static const String bebas = 'Bebas';
} }

@ -0,0 +1,6 @@
class HomeMap {
static Map<int, String> todoType = {
1: '巡检',
2: '工单',
};
}

@ -1,16 +1,22 @@
import 'package:aku_new_community_manager/const/saas_api.dart'; import 'package:aku_new_community_manager/const/saas_api.dart';
import 'package:aku_new_community_manager/gen/assets.gen.dart'; import 'package:aku_new_community_manager/gen/assets.gen.dart';
import 'package:aku_new_community_manager/new_ui/new_home/home_map.dart';
import 'package:aku_new_community_manager/new_ui/work_order/distributor/distributor_detail_page.dart';
import 'package:aku_new_community_manager/new_ui/work_order/receiver/receiver_detail_page.dart';
import 'package:aku_new_community_manager/saas_models/home/home_message_list_model.dart'; import 'package:aku_new_community_manager/saas_models/home/home_message_list_model.dart';
import 'package:aku_new_community_manager/saas_models/home/home_status_number_model.dart';
import 'package:aku_new_community_manager/saas_models/home/home_todo_list_model.dart';
import 'package:aku_new_community_manager/tools/user_tool.dart'; import 'package:aku_new_community_manager/tools/user_tool.dart';
import 'package:aku_new_community_manager/ui/home/personal_draw.dart'; import 'package:aku_new_community_manager/ui/home/personal_draw.dart';
import 'package:aku_new_community_manager/ui/manage_pages/inspection_manage/inspection_manage_details_page.dart';
import 'package:aku_new_community_manager/ui/widgets/app_widgets/bee_avatar_widget.dart'; import 'package:aku_new_community_manager/ui/widgets/app_widgets/bee_avatar_widget.dart';
import 'package:aku_new_community_manager/utils/bee_date_util.dart';
import 'package:aku_new_community_manager/utils/extension/list_extension.dart'; import 'package:aku_new_community_manager/utils/extension/list_extension.dart';
import 'package:aku_new_community_manager/utils/network/net_util.dart'; import 'package:aku_new_community_manager/utils/network/net_util.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart'; import 'package:velocity_x/velocity_x.dart';
import 'application_util.dart'; import 'application_util.dart';
@ -25,6 +31,8 @@ class NewHomePage extends StatefulWidget {
class _NewHomePageState extends State<NewHomePage> { class _NewHomePageState extends State<NewHomePage> {
List<HomeMessageListModel> _announceModels = []; List<HomeMessageListModel> _announceModels = [];
List<HomeTodoListModel> _todoModels = [];
HomeStatusNumberModel? _homeNums;
Future _getAnnounces() async { Future _getAnnounces() async {
//type //type
@ -34,6 +42,19 @@ class _NewHomePageState extends State<NewHomePage> {
re.rows.map((e) => HomeMessageListModel.fromJson(e)).toList(); re.rows.map((e) => HomeMessageListModel.fromJson(e)).toList();
} }
Future _getToDoList() async {
//type
var base = await NetUtil().get(SAASAPI.home.todoList);
_todoModels =
(base.data as List).map((e) => HomeTodoListModel.fromJson(e)).toList();
}
Future _getStatusNum() async {
//type
var base = await NetUtil().get(SAASAPI.home.statusNum);
_homeNums = HomeStatusNumberModel.fromJson(base.data);
}
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
@ -89,6 +110,8 @@ class _NewHomePageState extends State<NewHomePage> {
child: EasyRefresh( child: EasyRefresh(
onRefresh: () async { onRefresh: () async {
await _getAnnounces(); await _getAnnounces();
await _getStatusNum();
await _getToDoList();
setState(() {}); setState(() {});
}, },
header: MaterialHeader(), header: MaterialHeader(),
@ -160,7 +183,11 @@ class _NewHomePageState extends State<NewHomePage> {
.color(Colors.black.withOpacity(0.85)) .color(Colors.black.withOpacity(0.85))
.make(), .make(),
Spacer(), Spacer(),
'12'.text.size(24.sp).color(Color(0xFFF01C26)).make(), '${_homeNums?.noProcessedNum ?? 0}'
.text
.size(24.sp)
.color(Color(0xFFF01C26))
.make(),
], ],
), ),
Spacer(), Spacer(),
@ -172,7 +199,11 @@ class _NewHomePageState extends State<NewHomePage> {
.color(Colors.black.withOpacity(0.85)) .color(Colors.black.withOpacity(0.85))
.make(), .make(),
Spacer(), Spacer(),
'12'.text.size(24.sp).color(Color(0xFF1C92FF)).make(), '${_homeNums?.processingNum ?? 0}'
.text
.size(24.sp)
.color(Color(0xFF1C92FF))
.make(),
], ],
), ),
Spacer(), Spacer(),
@ -184,7 +215,11 @@ class _NewHomePageState extends State<NewHomePage> {
.color(Colors.black.withOpacity(0.85)) .color(Colors.black.withOpacity(0.85))
.make(), .make(),
Spacer(), Spacer(),
'12'.text.size(24.sp).color(Color(0xFF52C41A)).make(), '${_homeNums?.processedNum ?? 0}'
.text
.size(24.sp)
.color(Color(0xFF52C41A))
.make(),
], ],
), ),
Spacer(), Spacer(),
@ -196,7 +231,7 @@ class _NewHomePageState extends State<NewHomePage> {
.color(Colors.black.withOpacity(0.85)) .color(Colors.black.withOpacity(0.85))
.make(), .make(),
Spacer(), Spacer(),
'124' '${_homeNums?.allProcessNum ?? 0}'
.text .text
.size(24.sp) .size(24.sp)
.color(Color(0xFFFFC40C)) .color(Color(0xFFFFC40C))
@ -276,22 +311,22 @@ class _NewHomePageState extends State<NewHomePage> {
child: Row( child: Row(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
'查看全部待办'.text.size(28.sp).color(Color(0xFFFFC40C)).make(), // '查看全部待办'.text.size(28.sp).color(Color(0xFFFFC40C)).make(),
8.w.widthBox, 8.w.widthBox,
Container( // Container(
width: 28.w, // width: 28.w,
height: 28.w, // height: 28.w,
alignment: Alignment.center, // alignment: Alignment.center,
decoration: BoxDecoration( // decoration: BoxDecoration(
color: Color(0xFFC40C), // color: Color(0xFFC40C),
borderRadius: BorderRadius.circular(4.w), // borderRadius: BorderRadius.circular(4.w),
), // ),
child: Icon( // child: Icon(
CupertinoIcons.chevron_right, // CupertinoIcons.chevron_right,
color: Color(0xFFFFC40C), // color: Color(0xFFFFC40C),
size: 24.w, // size: 24.w,
), // ),
) // )
], ],
), ),
), ),
@ -309,7 +344,10 @@ class _NewHomePageState extends State<NewHomePage> {
child: ListView( child: ListView(
shrinkWrap: true, shrinkWrap: true,
scrollDirection: Axis.horizontal, scrollDirection: Axis.horizontal,
children: [_todoListCard()], children: _todoModels
.mapIndexed((currentValue, index) =>
_todoListCard(currentValue, index))
.toList(),
), ),
), ),
], ],
@ -400,37 +438,69 @@ class _NewHomePageState extends State<NewHomePage> {
); );
} }
Widget _todoListCard() { Widget _todoListCard(HomeTodoListModel model, int index) {
return Stack( return Stack(
children: [ children: [
Container( GestureDetector(
width: 390.w, onTap: () {
padding: EdgeInsets.symmetric(horizontal: 24.w, vertical: 24.w), switch (model.type) {
decoration: BoxDecoration( case 1:
color: Color(0xFFFFC40C).withOpacity(0.03), Get.to(InspectionManageDetailsPage(
borderRadius: BorderRadius.circular(8.w), executeId: model.id,
border: Border.all(color: Color(0xFFFFC40C).withOpacity(0.3)), ));
), break;
child: Column( case 2:
crossAxisAlignment: CrossAxisAlignment.start, if (UserTool
children: [ .userProvider.userInfoModel!.workOrderJurisdiction ==
'电梯巡检'.text.size(28.sp).color(Color(0xFF333333)).bold.make(), 1) {
12.w.heightBox, Get.to(() => DistributorDetailPage(id: model.id));
'时间2021-12-23 1233' } else {
.text Get.to(() => ReceiverDetailPage(id: model.id));
.size(24.sp) }
.color(Color(0xFF333333)) break;
.make(), }
8.w.heightBox, },
'地点1栋1单元B2排风机房'.text.size(24.sp).color(Color(0xFF333333)).make(), child: Material(
Spacer(), color: Colors.transparent,
BeeDateUtil(DateTime.now()) child: Container(
.timeAgo width: 390.w,
.text padding: EdgeInsets.symmetric(horizontal: 24.w, vertical: 24.w),
.size(20.sp) decoration: BoxDecoration(
.color(Color(0xFF999999)) color: Color(0xFFFFC40C).withOpacity(0.03),
.make(), borderRadius: BorderRadius.circular(8.w),
], border: Border.all(color: Color(0xFFFFC40C).withOpacity(0.3)),
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
'${HomeMap.todoType[model.type]}'
.text
.size(28.sp)
.color(Color(0xFF333333))
.bold
.make(),
12.w.heightBox,
'时间:${model.pendingDate}'
.text
.size(24.sp)
.color(Color(0xFF333333))
.make(),
8.w.heightBox,
'编号:${model.code}'
.text
.size(24.sp)
.color(Color(0xFF333333))
.make(),
Spacer(),
// BeeDateUtil(DateTime.now())
// .timeAgo
// .text
// .size(20.sp)
// .color(Color(0xFF999999))
// .make(),
],
),
),
), ),
), ),
Positioned( Positioned(

@ -0,0 +1,30 @@
import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
part 'home_status_number_model.g.dart';
@JsonSerializable()
class HomeStatusNumberModel extends Equatable {
final int noProcessedNum;
final int processingNum;
final int processedNum;
final int allProcessNum;
factory HomeStatusNumberModel.fromJson(Map<String, dynamic> json) =>
_$HomeStatusNumberModelFromJson(json);
const HomeStatusNumberModel({
required this.noProcessedNum,
required this.processingNum,
required this.processedNum,
required this.allProcessNum,
});
@override
List<Object?> get props => [
noProcessedNum,
processingNum,
processedNum,
allProcessNum,
];
}

@ -0,0 +1,16 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'home_status_number_model.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
HomeStatusNumberModel _$HomeStatusNumberModelFromJson(
Map<String, dynamic> json) =>
HomeStatusNumberModel(
noProcessedNum: json['noProcessedNum'] as int,
processingNum: json['processingNum'] as int,
processedNum: json['processedNum'] as int,
allProcessNum: json['allProcessNum'] as int,
);

@ -0,0 +1,33 @@
import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
part 'home_todo_list_model.g.dart';
@JsonSerializable()
class HomeTodoListModel extends Equatable {
final int id;
final int type;
final String code;
final int status;
final String pendingDate;
factory HomeTodoListModel.fromJson(Map<String, dynamic> json) =>
_$HomeTodoListModelFromJson(json);
const HomeTodoListModel({
required this.id,
required this.type,
required this.code,
required this.status,
required this.pendingDate,
});
@override
List<Object?> get props => [
id,
type,
code,
status,
pendingDate,
];
}

@ -0,0 +1,16 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'home_todo_list_model.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
HomeTodoListModel _$HomeTodoListModelFromJson(Map<String, dynamic> json) =>
HomeTodoListModel(
id: json['id'] as int,
type: json['type'] as int,
code: json['code'] as String,
status: json['status'] as int,
pendingDate: json['pendingDate'] as String,
);
Loading…
Cancel
Save