|
|
|
@ -2,6 +2,8 @@
|
|
|
|
|
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
|
|
import 'package:equatable/equatable.dart';
|
|
|
|
|
|
|
|
|
|
import 'package:aku_community/const/resource.dart';
|
|
|
|
|
import 'package:aku_community/pages/convenient_phone/convenient_phone_page.dart';
|
|
|
|
|
import 'package:aku_community/pages/event_activity/event_voting_page.dart';
|
|
|
|
@ -26,7 +28,7 @@ import 'package:aku_community/ui/profile/house/house_owners_page.dart';
|
|
|
|
|
|
|
|
|
|
///应用对象
|
|
|
|
|
///Application Object
|
|
|
|
|
class AO {
|
|
|
|
|
class AO extends Equatable {
|
|
|
|
|
String title = '';
|
|
|
|
|
String path = '';
|
|
|
|
|
dynamic page = () => Scaffold();
|
|
|
|
@ -48,16 +50,13 @@ class AO {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
bool operator ==(Object other) =>
|
|
|
|
|
other is AO && runtimeType == other.runtimeType && title == other.title;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
int get hashCode => title.hashCode;
|
|
|
|
|
List<Object?> get props => [title];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
///所有应用
|
|
|
|
|
List<AO> appObjects = [
|
|
|
|
|
AO('一键开门', R.ASSETS_APPLICATIONS_OEPN_DOOR_PNG, () => Scaffold()),
|
|
|
|
|
if (false) AO('一键开门', R.ASSETS_APPLICATIONS_OEPN_DOOR_PNG, () => Scaffold()),
|
|
|
|
|
if (false)
|
|
|
|
|
AO('开门码', R.ASSETS_APPLICATIONS_DOOR_CODE_PNG, () => OpeningCodePage()),
|
|
|
|
|
AO('访客邀请', R.ASSETS_APPLICATIONS_VISITOR_INVITE_PNG,
|
|
|
|
|
() => VisitorAccessPage()),
|
|
|
|
@ -110,10 +109,10 @@ List<AO> userAppObjects = [
|
|
|
|
|
AO('我的车位', R.ASSETS_ICONS_USER_ICON_WDCW_PNG, () => CarParkingPage()),
|
|
|
|
|
AO('我的车', R.ASSETS_ICONS_USER_ICON_WDC_PNG, () => CarManagePage()),
|
|
|
|
|
AO('社区活动', R.ASSETS_ICONS_USER_ICON_WDSQHD_PNG, () => ActivityListPage()),
|
|
|
|
|
AO('我的缴费', R.ASSETS_ICONS_USER_ICON_WDJF_PNG, () => LifePayPage()),
|
|
|
|
|
AO('我的报修', R.ASSETS_ICONS_USER_ICON_WDBX_PNG, () => FixedSubmitPage()),
|
|
|
|
|
AO('我的地址', R.ASSETS_ICONS_USER_ICON_WDDZ_PNG, () => Scaffold()),
|
|
|
|
|
AO('我的管家', R.ASSETS_ICONS_USER_ICON_WDGJ_PNG, () => Scaffold()),
|
|
|
|
|
// AO('我的缴费', R.ASSETS_ICONS_USER_ICON_WDJF_PNG, () => LifePayPage()),
|
|
|
|
|
// AO('我的报修', R.ASSETS_ICONS_USER_ICON_WDBX_PNG, () => FixedSubmitPage()),
|
|
|
|
|
// AO('我的地址', R.ASSETS_ICONS_USER_ICON_WDDZ_PNG, () => Scaffold()),
|
|
|
|
|
// AO('我的管家', R.ASSETS_ICONS_USER_ICON_WDGJ_PNG, () => Scaffold()),
|
|
|
|
|
AO('我的访客', R.ASSETS_ICONS_USER_ICON_WDFK_PNG, () => VisitorAccessPage()),
|
|
|
|
|
AO('设置', R.ASSETS_ICONS_USER_ICON_SZ_PNG, () => SettingsPage()),
|
|
|
|
|
];
|
|
|
|
@ -124,7 +123,7 @@ AO allApp =
|
|
|
|
|
|
|
|
|
|
///为您推荐 original value
|
|
|
|
|
List<String> _recommendApp = [
|
|
|
|
|
'一键开门',
|
|
|
|
|
if (false) '一键开门',
|
|
|
|
|
'访客邀请',
|
|
|
|
|
'报事报修',
|
|
|
|
|
'建议咨询',
|
|
|
|
|