1,新增我的-设置-锁用户管理模块UI

2,新增我的-设置-授权管理员模块UI
3,修改commonItem的line颜色
4,修改部分页面的Switch样式
This commit is contained in:
Daisy 2023-07-24 14:36:56 +08:00
parent 681ed316bc
commit 9232999c0d
12 changed files with 875 additions and 313 deletions

View File

@ -236,6 +236,7 @@
"problemTwo":"Problem Two",
"problemThree":"Problem Three",
"pleaseEnterYourAnswer":"Please Enter Your Answer",
"aboutToExpire":"About to expire",
"designation": "designation",
"state": "State",

View File

@ -236,6 +236,7 @@
"problemTwo":"problemTwo",
"problemThree":"problemThree",
"pleaseEnterYourAnswer":"pleaseEnterYourAnswer",
"aboutToExpire":"About to expire",
"designation": "designation",
"state": "state",

View File

@ -236,6 +236,7 @@
"problemTwo":"问题二",
"problemThree":"问题三",
"pleaseEnterYourAnswer":"请输入你的答案",
"aboutToExpire":"即将到期",
"designation": "名称",
"state": "状态",

View File

@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:star_lock/mine/mineSet/lockUserManage/lockUserManageListPage.dart';
import 'package:star_lock/mine/mineSet/mineSet_page.dart';
import 'login/forgetPassword/starLock_forgetPassword_page.dart';
@ -98,113 +99,154 @@ import 'mine/valueAddedServices/valueAddedServicesNoteAndEmailDetail/valueAddedS
import 'mine/valueAddedServices/valueAddedServicesRealName/valueAddedServicesRealName_page.dart';
import 'mine/valueAddedServices/valueAddedServicesSMSTemplate/valueAddedServicesAddSMSTemplate/valueAddedServicesAddSMSTemplate_page.dart';
import 'mine/valueAddedServices/valueAddedServicesSMSTemplate/valueAddedServicesListSMSTemplate/valueAddedServicesListSMSTemplate_page.dart';
import 'mine/mineSet/authorizedAdministrator/authorizedAdministratorListPage.dart';
import 'starLockApplication.dart';
abstract class Routers {
static const initial = '/';//
static const starLockMain = '/StarLockMain';//
static const starLockMinePage = '/StarLockMinePage';//
static const seletLockTypePage = '/SeletLockTypePage';//
static const addLockPage = '/AddLockPage';//
static const nearbyLockPage = '/NearbyLockPage';//
static const lockAddressPage = '/LockAddressPage';//
static const saveLockPage = '/SaveLockPage';//
static const lockDetailPage = '/LockDetailPage';//
static const electronicKeyListPage = '/ElectronicKeyListPage';//
static const electronicKeyDetailPage = '/ElectronicKeyDetailPage';//
static const electronicKeyDetailChangeDate = '/ElectronicKeyDetailChangeDate';//
static const sendElectronicKeyManagePage = '/SendElectronicKeyManagePage';//
static const massSendElectronicKeyManagePage = '/MassSendElectronicKeyManagePage';//
static const electronicKeyPeriodValidityPage = '/ElectronicKeyPeriodValidityPage';//
static const sendEmailNotificationPage = '/SendEmailNotificationPage';//
static const passwordKeyListPage = '/PasswordKeyListPage';//
static const passwordKeyManagePage = '/PasswordKeyManagePage';//
static const passwordKeyDetailPage = '/PasswordKeyDetailPage';//
static const otherTypeKeyListPage = '/OtherTypeKeyListPage';//
static const otherTypeKeyDetailPage = '/OtherTypeKeyDetailPage';//
static const otherTypeKeyManagePage = '/OtherTypeKeyManagePage';//
static const authorizedAdminListPage = '/AuthorizedAdminListPage';//
static const authorizedAdminDetailPage = '/AuthorizedAdminDetailPage';//
static const authorizedAdminManagePage = '/AuthorizedAdminManagePage';//
static const volumeAuthorizationLockManagePage = '/VolumeAuthorizationLockManagePage';//
static const lockOperatingRecordPage = '/LockOperatingRecordPage';//
static const lockSetPage = '/LockSetPage';//
static const basicInformationPage = '/BasicInformationPage';//
static const uploadElectricQuantityPage = '/UploadElectricQuantityPage';//
static const editLockNamePage = '/EditLockNamePage';//
static const lockSeletGroupingPage = '/LockSeletGroupingPage';//
static const adminOpenLockPasswordPage = '/AdminOpenLockPasswordPage';//
static const wirelessKeyboardPage = '/WirelessKeyboardPage';//
static const addWirelessKeyboardPage = '/AddWirelessKeyboardPage';//
static const addWirelessKeyboardScreenNotLightOnPage = '/AddWirelessKeyboardScreenNotLightOnPage';//
static const seletWirelessKeyboardPage = '/SeletWirelessKeyboardPage';//
static const doorMagneticPage = '/DoorMagneticPage';//
static const addDoorMagneticPage = '/AddDoorMagneticPage';//
static const nearbyDoorMagneticPage = '/NearbyDoorMagneticPage';//
static const remoteUnlockingPage = '/RemoteUnlockingPage';//
static const automaticBlockingPage = '/AutomaticBlockingPage';//
static const normallyOpenModePage = '/NormallyOpenModePage';//
static const lockSoundSetPage = '/LockSoundSetPage';//
static const burglarAlarmPage = '/BurglarAlarmPage';//
static const resetButtonPage = '/ResetButtonPage';//
static const unlockQRCodePage = '/UnlockQRCodePage';//
static const lockTimePage = '/LockTimePage';//
static const diagnosePage = '/DiagnosePage';//
static const uploadDataPage = '/UploadDataPage';//
static const importOtherLockDataPage = '/ImportOtherLockDataPage';//
static const lockEscalationPage = '/LockEscalationPage';//
static const markedHouseStatePage = '/MarkedHouseStatePage';//
static const checkingInListPage = '/CheckingInListPage';//
static const checkingInSetPage = '/CheckingInSetPage';//
static const checkingInStaffManagePage = '/CheckingInStaffManagePage';//
static const checkingInAddStaffPage = '/CheckingInAddStaffPage';//
static const checkingInSetWorkTimePage = '/CheckingInSetWorkTimePage';//
static const checkingInSetWorkdaySet = '/CheckingInSetWorkdaySet';//
static const checkingInSetHolidaysPage = '/CheckingInSetHolidaysPage';//
static const checkingInAddHolidaysPage = '/CheckingInAddHolidaysPage';//
static const checkingInDetailPage = '/CheckingInDetailPage';//
static const initial = '/'; //
static const starLockMain = '/StarLockMain'; //
static const starLockMinePage = '/StarLockMinePage'; //
static const seletLockTypePage = '/SeletLockTypePage'; //
static const addLockPage = '/AddLockPage'; //
static const nearbyLockPage = '/NearbyLockPage'; //
static const lockAddressPage = '/LockAddressPage'; //
static const saveLockPage = '/SaveLockPage'; //
static const lockDetailPage = '/LockDetailPage'; //
static const electronicKeyListPage = '/ElectronicKeyListPage'; //
static const electronicKeyDetailPage = '/ElectronicKeyDetailPage'; //
static const electronicKeyDetailChangeDate =
'/ElectronicKeyDetailChangeDate'; //
static const sendElectronicKeyManagePage =
'/SendElectronicKeyManagePage'; //
static const massSendElectronicKeyManagePage =
'/MassSendElectronicKeyManagePage'; //
static const electronicKeyPeriodValidityPage =
'/ElectronicKeyPeriodValidityPage'; //
static const sendEmailNotificationPage = '/SendEmailNotificationPage'; //
static const passwordKeyListPage = '/PasswordKeyListPage'; //
static const passwordKeyManagePage = '/PasswordKeyManagePage'; //
static const passwordKeyDetailPage = '/PasswordKeyDetailPage'; //
static const otherTypeKeyListPage = '/OtherTypeKeyListPage'; //
static const otherTypeKeyDetailPage =
'/OtherTypeKeyDetailPage'; //
static const otherTypeKeyManagePage =
'/OtherTypeKeyManagePage'; //
static const authorizedAdminListPage = '/AuthorizedAdminListPage'; //
static const authorizedAdminDetailPage =
'/AuthorizedAdminDetailPage'; //
static const authorizedAdminManagePage =
'/AuthorizedAdminManagePage'; //
static const volumeAuthorizationLockManagePage =
'/VolumeAuthorizationLockManagePage'; //
static const lockOperatingRecordPage = '/LockOperatingRecordPage'; //
static const lockSetPage = '/LockSetPage'; //
static const basicInformationPage = '/BasicInformationPage'; //
static const uploadElectricQuantityPage =
'/UploadElectricQuantityPage'; //
static const editLockNamePage = '/EditLockNamePage'; //
static const lockSeletGroupingPage = '/LockSeletGroupingPage'; //
static const adminOpenLockPasswordPage =
'/AdminOpenLockPasswordPage'; //
static const wirelessKeyboardPage = '/WirelessKeyboardPage'; //
static const addWirelessKeyboardPage = '/AddWirelessKeyboardPage'; //
static const addWirelessKeyboardScreenNotLightOnPage =
'/AddWirelessKeyboardScreenNotLightOnPage'; //
static const seletWirelessKeyboardPage =
'/SeletWirelessKeyboardPage'; //
static const doorMagneticPage = '/DoorMagneticPage'; //
static const addDoorMagneticPage = '/AddDoorMagneticPage'; //
static const nearbyDoorMagneticPage = '/NearbyDoorMagneticPage'; //
static const remoteUnlockingPage = '/RemoteUnlockingPage'; //
static const automaticBlockingPage = '/AutomaticBlockingPage'; //
static const normallyOpenModePage = '/NormallyOpenModePage'; //
static const lockSoundSetPage = '/LockSoundSetPage'; //
static const burglarAlarmPage = '/BurglarAlarmPage'; //
static const resetButtonPage = '/ResetButtonPage'; //
static const unlockQRCodePage = '/UnlockQRCodePage'; //
static const lockTimePage = '/LockTimePage'; //
static const diagnosePage = '/DiagnosePage'; //
static const uploadDataPage = '/UploadDataPage'; //
static const importOtherLockDataPage = '/ImportOtherLockDataPage'; //
static const lockEscalationPage = '/LockEscalationPage'; //
static const markedHouseStatePage = '/MarkedHouseStatePage'; //
static const checkingInListPage = '/CheckingInListPage'; //
static const checkingInSetPage = '/CheckingInSetPage'; //
static const checkingInStaffManagePage = '/CheckingInStaffManagePage'; //
static const checkingInAddStaffPage = '/CheckingInAddStaffPage'; //
static const checkingInSetWorkTimePage =
'/CheckingInSetWorkTimePage'; //
static const checkingInSetWorkdaySet = '/CheckingInSetWorkdaySet'; //
static const checkingInSetHolidaysPage =
'/CheckingInSetHolidaysPage'; //
static const checkingInAddHolidaysPage = '/CheckingInAddHolidaysPage'; //
static const checkingInDetailPage = '/CheckingInDetailPage'; //
static const mineSetPage = '/MineSetPage';//
static const mineMultiLanguagePage = '/MineMultiLanguagePage';//
static const minePersonInfoPage = '/MinePersonInfoPage';//
static const minePersonInfoEditNamePage = '/MinePersonInfoEditNamePage';//
static const minePersonInfoEditAccountPage = '/MinePersonInfoEditAccountPage';//
static const minePersonInfoEditAccountNextPage = '/MinePersonInfoEditAccountNextPage';//
static const minePersonInfoEditIphonePage = '/MinePersonInfoEditIphonePage';//
static const minePersonInfoResetPasswordPage = '/MinePersonInfoResetPasswordPage';//
static const minePersonInfoSetSafetyProblemPage = '/MinePersonInfoSetSafetyProblemPage';//
static const mineSetPage = '/MineSetPage'; //
static const mineMultiLanguagePage = '/MineMultiLanguagePage'; //
static const minePersonInfoPage = '/MinePersonInfoPage'; //
static const minePersonInfoEditNamePage =
'/MinePersonInfoEditNamePage'; //
static const minePersonInfoEditAccountPage =
'/MinePersonInfoEditAccountPage'; //
static const minePersonInfoEditAccountNextPage =
'/MinePersonInfoEditAccountNextPage'; //
static const minePersonInfoEditIphonePage =
'/MinePersonInfoEditIphonePage'; //
static const minePersonInfoResetPasswordPage =
'/MinePersonInfoResetPasswordPage'; //
static const minePersonInfoSetSafetyProblemPage =
'/MinePersonInfoSetSafetyProblemPage'; //
static const gatewayListPage = '/GatewayListPage';// -
static const gatewayDetailPage = '/GatewayDetailPage';// -
static const gatewayConnectionLockPage = '/GatewayConnectionLockPage';// -
static const seletGatewayTypePage = '/SeletGatewayTypePage';// -
static const seletGatewayTypeNextTipPage = '/SeletGatewayTypeNextTipPage';// -
static const seletGatewayPage = '/SeletGatewayPage';// -
static const gatewayConfigurationWifiPage = '/GatewayConfigurationWifiPage';// -wifi
static const gatewayListPage = '/GatewayListPage'; // -
static const gatewayDetailPage = '/GatewayDetailPage'; // -
static const gatewayConnectionLockPage =
'/GatewayConnectionLockPage'; // -
static const seletGatewayTypePage = '/SeletGatewayTypePage'; // -
static const seletGatewayTypeNextTipPage =
'/SeletGatewayTypeNextTipPage'; // -
static const seletGatewayPage = '/SeletGatewayPage'; // -
static const gatewayConfigurationWifiPage =
'/GatewayConfigurationWifiPage'; // -wifi
static const messageListPage = '/MessageListPage';// -
static const supportStaffPage = '/SupportStaffPage';// -
static const valueAddedServicesPage = '/ValueAddedServicesPage';// -
static const abountPage = '/AbountPage';// -
static const messageListPage = '/MessageListPage'; // -
static const supportStaffPage = '/SupportStaffPage'; // -
static const valueAddedServicesPage = '/ValueAddedServicesPage'; // -
static const abountPage = '/AbountPage'; // -
static const valueAddedServicesNoteAndEmailDetailPage = '/ValueAddedServicesNoteAndEmailDetailPage';// -
static const valueAddedServicesRealNamePage = '/ValueAddedServicesRealNamePage';// -
static const valueAddedServicesHighFunctionPage = '/ValueAddedServicesHighFunctionPage';// -
static const valueAddedServicesBuyPage = '/ValueAddedServicesBuyPage';// -
static const valueAddedServicesListSMSTemplatePage = '/ValueAddedServicesListSMSTemplatePage';// -
static const valueAddedServicesAddSMSTemplatePage = '/valueAddedServicesAddSMSTemplatePage';// -
static const valueAddedServicesListEmailTemplatePage = '/ValueAddedServicesListEmailTemplatePage';// -
static const valueAddedServicesAddEmailTemplatePage = '/ValueAddedServicesAddEmailTemplatePage';// -
static const valueAddedServicesBuyAndUseRecordManagePage = '/ValueAddedServicesBuyAndUseRecordManagePage';// -使
static const valueAddedServicesNoteAndEmailDetailPage =
'/ValueAddedServicesNoteAndEmailDetailPage'; // -
static const valueAddedServicesRealNamePage =
'/ValueAddedServicesRealNamePage'; // -
static const valueAddedServicesHighFunctionPage =
'/ValueAddedServicesHighFunctionPage'; // -
static const valueAddedServicesBuyPage =
'/ValueAddedServicesBuyPage'; // -
static const valueAddedServicesListSMSTemplatePage =
'/ValueAddedServicesListSMSTemplatePage'; // -
static const valueAddedServicesAddSMSTemplatePage =
'/valueAddedServicesAddSMSTemplatePage'; // -
static const valueAddedServicesListEmailTemplatePage =
'/ValueAddedServicesListEmailTemplatePage'; // -
static const valueAddedServicesAddEmailTemplatePage =
'/ValueAddedServicesAddEmailTemplatePage'; // -
static const valueAddedServicesBuyAndUseRecordManagePage =
'/ValueAddedServicesBuyAndUseRecordManagePage'; // -使
static const lockScreenPage = '/LockScreenPage';// -
static const aPPUnlockNeedMobileNetworkingLockPage = '/APPUnlockNeedMobileNetworkingLockPage';// -app开锁时需手机连网的锁
static const hideInvalidUnlockPermissionsPage = '/HideInvalidUnlockPermissionsPage';// -
static const lockScreenPage = '/LockScreenPage'; // -
static const aPPUnlockNeedMobileNetworkingLockPage =
'/APPUnlockNeedMobileNetworkingLockPage'; // -app开锁时需手机连网的锁
static const hideInvalidUnlockPermissionsPage =
'/HideInvalidUnlockPermissionsPage'; // -
static const starLockLoginPage = '/StarLockLoginPage';//
static const starLockRegisterPage = '/StarLockRegisterPage';//
static const starLockForgetPasswordPage = '/StarLockForgetPasswordPage';//
static const seletCountryRegionPage = '/SeletCountryRegionPage';//
static const lockUserManageLisPage = '/LockUserManageLisPage'; //-
static const authorizedAdministratorListPage =
'/AuthorizedAdministratorListPage'; //-
static const starLockLoginPage = '/StarLockLoginPage'; //
static const starLockRegisterPage = '/StarLockRegisterPage'; //
static const starLockForgetPasswordPage =
'/StarLockForgetPasswordPage'; //
static const seletCountryRegionPage = '/SeletCountryRegionPage'; //
}
abstract class AppRouters {
@ -424,7 +466,7 @@ abstract class AppRouters {
GetPage(
name: Routers.lockTimePage,
page: () => const LockTimePage(),
),//
), //
GetPage(
name: Routers.diagnosePage,
page: () => const DiagnosePage(),
@ -601,5 +643,11 @@ abstract class AppRouters {
name: Routers.hideInvalidUnlockPermissionsPage,
page: () => const HideInvalidUnlockPermissionsPage(),
),
GetPage(
name: Routers.authorizedAdministratorListPage,
page: () => const AuthorizedAdministratorListPage()),
GetPage(
name: Routers.lockUserManageLisPage,
page: () => const LockUserManageListListPage())
];
}
}

View File

@ -1,10 +1,8 @@
import 'dart:ui';
import 'package:flutter/material.dart';
class AppColors {
// static Color mainColor = const Color(0xFF385DEA);
static Color mainColor = const Color(0xFF4777EE);
static Color mainBackgroundColor = const Color(0xFFF5F5F5);
@ -22,7 +20,6 @@ class AppColors {
static Color buttonEnableTextColor = const Color(0xFFFFFFFF);
static Color buttonDisableTextColor = buttonEnableTextColor.withOpacity(0.6);
static Color deleteBtnBgColor = const Color(0xFFFF495C).withOpacity(0.7);
static Color touristColor = const Color(0xFFF58A22);
@ -37,20 +34,21 @@ class AppColors {
static Color dialogInputBgColor = pickerItemSelectedBgColor;
static Color introduceDialogBgColor = const Color(0xFF112B4C);
static Color pickerTitleTextColor = const Color(0xFF000000);
static Color pickerInfoTextColor = pickerTitleTextColor.withOpacity(0.5);
static Color pickerItemSelectedTextColor = const Color(0xFF0093E5);
static Color pickerItemSelectedBgColor = const Color(0xFFE4E4E4);
static Color pickerItemUnselectTextColor = pickerTitleTextColor.withOpacity(0.5);
static Color pickerItemUnselectTextColor =
pickerTitleTextColor.withOpacity(0.5);
static Color normalTextColor = const Color(0xFFFFFFFF);
static Color inputErrorTextColor = const Color(0xFFFF6666);
static Color errorImageColor = const Color(0xFFFF495C );
static Color errorImageColor = const Color(0xFFFF495C);
static Color inputTitleTextColor = const Color(0xFFFFFFFF).withOpacity(0.6);
static Color settingItemInfoTextColor = const Color(0xFFFFFFFF).withOpacity(0.6);
static Color dividerColor = const Color(0xFFFFFFFF).withOpacity(0.6);
static Color settingItemInfoTextColor =
const Color(0xFFFFFFFF).withOpacity(0.6);
static Color dividerColor = const Color(0xFFFFFFFF).withOpacity(0.6);
static Color textFieldEnableBorderColor = normalTextColor.withOpacity(0.2);
static Color textFieldFocusBorderColor = normalTextColor.withOpacity(0.2);
@ -59,7 +57,6 @@ class AppColors {
static Color protocolTextColor = touristColor;
static Color topTabBarSelectedBgColor = buttonEnableColor;
static Color topTabBarUnselectedBgColor = buttonEnableTextColor;
static Color tapTabBarSelectedTextColor = buttonEnableTextColor;
@ -71,26 +68,26 @@ class AppColors {
static Color wifiDisableColor = const Color(0xFFA8A8A8);
static Color get paginationColor => const Color(0xFF01295C).withOpacity(45);
static Color get paginationActiveColor => const Color(0xFFFFFFFF).withOpacity(65);
static Color get paginationActiveColor =>
const Color(0xFFFFFFFF).withOpacity(65);
static Color scanPointerLineColor = Colors.blue;
static Color scanColor0 = const Color(0xFF0093E5).withOpacity(0.05);
static Color scanColor0 = const Color(0xFF0093E5).withOpacity(0.05);
static Color scanColor1 = const Color(0xFF0093E5).withOpacity(0.1);
static Color scanColor2 = const Color(0xFF0093E5).withOpacity(0.3);
static Color scanColor3 = const Color(0xFF0093E5).withOpacity(0.5);
static Color scanColor4 = const Color(0xFF0093E5).withOpacity(0.9);
static Color scanCircleCenterColor0 = Colors.blue.withOpacity(0.9);
static Color scanCircleCenterColor1 = const Color(0xffE9F3FF).withOpacity(0.8);
static Color scanCircleCenterColor0 = Colors.blue.withOpacity(0.9);
static Color scanCircleCenterColor1 =
const Color(0xffE9F3FF).withOpacity(0.8);
static Color starCenterColor = const Color(0xFF0093E5);
static Color starMiddleColor = const Color.fromRGBO(255, 255, 255,1);
static Color starBorderColor = const Color.fromRGBO(255, 255, 255,0.2);
static Color starOutsideColor = const Color.fromRGBO(255, 255, 255,0.01);
static Color starMiddleColor = const Color.fromRGBO(255, 255, 255, 1);
static Color starBorderColor = const Color.fromRGBO(255, 255, 255, 0.2);
static Color starOutsideColor = const Color.fromRGBO(255, 255, 255, 0.01);
static Color workingStateInfoBgColor = const Color(0xFF20354E);
@ -98,9 +95,9 @@ class AppColors {
static Color color_level_1 = const Color(0xFFFFFFFF);
static Color color_level_2 = const Color(0xFFF7B500);
static Color switchTrackSelectedColor = const Color(0xFF0093E5);
static Color switchTrackUnselectedColor = const Color(0xFF5A6676).withOpacity(0.5);
static Color switchTrackUnselectedColor =
const Color(0xFF5A6676).withOpacity(0.5);
static Color switchThumbColor = const Color(0xFFFFFFFF);
static Color popMenuItemUnselectedBg = const Color(0xFF112B4C);
@ -108,15 +105,15 @@ class AppColors {
static Color blackColor = const Color(0xFF000000);
static Color dateSelectedBgColor = const Color(0xFF0093E5);
static Color dateSelectedTextColor = const Color(0xFFFFFFFF);
static Color dateUnselectedTextColor = blackColor;
static Color dateUnselectedDialogBgColor = const Color(0xFFC9C9C9).withOpacity(0.5);
static Color dateUnselectedDialogBgColor =
const Color(0xFFC9C9C9).withOpacity(0.5);
static Color dateUnselectedBgColor = const Color(0xFFFFFFFF);
static Color progressBgColor = const Color(0xFF022345);
static Color progressValueColor = const Color(0xFF0093E5);
}
static const greyLineColor = Color.fromRGBO(240, 240, 240, 1); //线
}

View File

@ -1,3 +1,4 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_native_contact_picker/flutter_native_contact_picker.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
@ -30,10 +31,9 @@ class _AuthorizedAdminPageState extends State<AuthorizedAdminPage> {
void initState() {
// TODO: implement initState
super.initState();
}
Widget indexChangeWidget(){
Widget indexChangeWidget() {
switch (int.parse(widget.type)) {
case 0:
{
@ -49,7 +49,7 @@ class _AuthorizedAdminPageState extends State<AuthorizedAdminPage> {
);
}
default:
//
//
return Column(
children: [
keyInfoWidget(),
@ -61,45 +61,68 @@ class _AuthorizedAdminPageState extends State<AuthorizedAdminPage> {
}
// widget
Widget keyInfoWidget(){
Widget keyInfoWidget() {
return Column(
children: [
Container(height: 10.h),
CommonItem(leftTitel:TranslationLoader.lanKeys!.receiver!.tr, rightTitle:"", isHaveLine: true, isHaveRightWidget: true, rightWidget: getTFWidget(true, TranslationLoader.lanKeys!.pleaseEnterNumberOrEmail!.tr)),
CommonItem(leftTitel:TranslationLoader.lanKeys!.name!.tr, rightTitle:"", isHaveRightWidget: true, rightWidget: getTFWidget(false, TranslationLoader.lanKeys!.pleaseEnter!.tr)),
CommonItem(
leftTitel: TranslationLoader.lanKeys!.receiver!.tr,
rightTitle: "",
isHaveLine: true,
isHaveRightWidget: true,
rightWidget: getTFWidget(
true, TranslationLoader.lanKeys!.pleaseEnterNumberOrEmail!.tr)),
CommonItem(
leftTitel: TranslationLoader.lanKeys!.name!.tr,
rightTitle: "",
isHaveRightWidget: true,
rightWidget:
getTFWidget(false, TranslationLoader.lanKeys!.pleaseEnter!.tr)),
Container(height: 10.h),
],
);
}
//
Widget keyTimeWidget(){
Widget keyTimeWidget() {
return Column(
children: [
CommonItem(leftTitel:TranslationLoader.lanKeys!.effectiveTime!.tr, rightTitle:"2020.06.20 11:49", isHaveLine: true, isHaveDirection: true, action:(){
// _showDatePicker();
}),
CommonItem(leftTitel:TranslationLoader.lanKeys!.failureTime!.tr, rightTitle:"2020.06.20 11:49", isHaveDirection: true, action:(){
// _showDatePicker();
}),
CommonItem(
leftTitel: TranslationLoader.lanKeys!.effectiveTime!.tr,
rightTitle: "2020.06.20 11:49",
isHaveLine: true,
isHaveDirection: true,
action: () {
// _showDatePicker();
}),
CommonItem(
leftTitel: TranslationLoader.lanKeys!.failureTime!.tr,
rightTitle: "2020.06.20 11:49",
isHaveDirection: true,
action: () {
// _showDatePicker();
}),
Container(height: 10.h),
],
);
}
//
Widget keyRealNameWidget(){
Widget keyRealNameWidget() {
return Column(
children: [
CommonItem(leftTitel:TranslationLoader.lanKeys!.realNameAuthentication!.tr, rightTitle:"", isHaveRightWidget: true, rightWidget: Container(width: 80.w, height: 50.h,child: _switch()), action:(){
}),
CommonItem(
leftTitel: TranslationLoader.lanKeys!.realNameAuthentication!.tr,
rightTitle: "",
isHaveRightWidget: true,
rightWidget: Container(width: 80.w, height: 50.h, child: _switch()),
action: () {}),
Container(height: 10.h),
],
);
}
Widget keyBottomWidget(String tipStr){
Widget keyBottomWidget(String tipStr) {
return Column(
children: [
Container(
@ -107,24 +130,37 @@ class _AuthorizedAdminPageState extends State<AuthorizedAdminPage> {
child: Row(
// crossAxisAlignment: CrossAxisAlignment.start,
children: [
Expanded(child: Text(tipStr, textAlign: TextAlign.start,)),
Expanded(
child: Text(
tipStr,
textAlign: TextAlign.start,
)),
],
),
),
SubmitBtn(btnName: TranslationLoader.lanKeys!.sender!.tr, borderRadius: 20.w, margin: EdgeInsets.only(left: 30.w, right: 30.w, top: 30.w), padding: EdgeInsets.only(top: 25.w, bottom: 25.w),
onClick: (){
}
),
SubmitBtn(
btnName: TranslationLoader.lanKeys!.sender!.tr,
borderRadius: 20.w,
margin: EdgeInsets.only(left: 30.w, right: 30.w, top: 30.w),
padding: EdgeInsets.only(top: 25.w, bottom: 25.w),
onClick: () {}),
Container(
padding: EdgeInsets.only(right:30.w),
padding: EdgeInsets.only(right: 30.w),
// color: Colors.red,
child: Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
TextButton(onPressed: (){
Navigator.pushNamed(context, Routers.volumeAuthorizationLockManagePage);
}, child: Text(TranslationLoader.lanKeys!.volumeAuthorizationLock!.tr, style: TextStyle(color: AppColors.mainColor, fontWeight: FontWeight.w500),)),
TextButton(
onPressed: () {
Navigator.pushNamed(
context, Routers.volumeAuthorizationLockManagePage);
},
child: Text(
TranslationLoader.lanKeys!.volumeAuthorizationLock!.tr,
style: TextStyle(
color: AppColors.mainColor,
fontWeight: FontWeight.w500),
)),
],
),
),
@ -133,7 +169,7 @@ class _AuthorizedAdminPageState extends State<AuthorizedAdminPage> {
}
//
Widget sendElectronicKeySucceed(){
Widget sendElectronicKeySucceed() {
return Column(
children: [
Container(
@ -142,37 +178,72 @@ class _AuthorizedAdminPageState extends State<AuthorizedAdminPage> {
color: Colors.white,
child: Column(
children: [
SizedBox(height: 30.h,),
Image.asset('images/main/icon_main_addLock.png', width: 150.w, height: 150.w, color: AppColors.mainColor,),
SizedBox(height: 20.h,),
SizedBox(
height: 30.h,
),
Image.asset(
'images/main/icon_main_addLock.png',
width: 150.w,
height: 150.w,
color: AppColors.mainColor,
),
SizedBox(
height: 20.h,
),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text("发送成功",style: TextStyle(fontSize: 32.sp, color: Colors.black, fontWeight: FontWeight.w500),),
Text(
"发送成功",
style: TextStyle(
fontSize: 32.sp,
color: Colors.black,
fontWeight: FontWeight.w500),
),
],
),
],
),
),
SizedBox(height: 20.h,),
SubmitBtn(btnName: '完成', fontSize: 28.sp, borderRadius: 20.w, margin: EdgeInsets.only(left: 30.w, right: 30.w, top: 30.w), padding: EdgeInsets.only(top: 25.w, bottom: 25.w), onClick: (){
}),
SubmitBtn(btnName: '邮件通知', fontSize: 28.sp, borderRadius: 20.w, margin: EdgeInsets.only(left: 30.w, right: 30.w, top: 30.w), padding: EdgeInsets.only(top: 25.w, bottom: 25.w), onClick: (){
Navigator.pushNamed(context, Routers.sendEmailNotificationPage);
}),
SubmitBtn(btnName: '微信通知', fontSize: 28.sp, borderRadius: 20.w, margin: EdgeInsets.only(left: 30.w, right: 30.w, top: 30.w), padding: EdgeInsets.only(top: 25.w, bottom: 25.w), onClick: (){
}),
SubmitBtn(btnName: '标记为已入住', fontSize: 28.sp, borderRadius: 20.w, margin: EdgeInsets.only(left: 30.w, right: 30.w, top: 30.w), padding: EdgeInsets.only(top: 25.w, bottom: 25.w), onClick: (){
}),
SizedBox(
height: 20.h,
),
SubmitBtn(
btnName: '完成',
fontSize: 28.sp,
borderRadius: 20.w,
margin: EdgeInsets.only(left: 30.w, right: 30.w, top: 30.w),
padding: EdgeInsets.only(top: 25.w, bottom: 25.w),
onClick: () {}),
SubmitBtn(
btnName: '邮件通知',
fontSize: 28.sp,
borderRadius: 20.w,
margin: EdgeInsets.only(left: 30.w, right: 30.w, top: 30.w),
padding: EdgeInsets.only(top: 25.w, bottom: 25.w),
onClick: () {
Navigator.pushNamed(context, Routers.sendEmailNotificationPage);
}),
SubmitBtn(
btnName: '微信通知',
fontSize: 28.sp,
borderRadius: 20.w,
margin: EdgeInsets.only(left: 30.w, right: 30.w, top: 30.w),
padding: EdgeInsets.only(top: 25.w, bottom: 25.w),
onClick: () {}),
SubmitBtn(
btnName: '标记为已入住',
fontSize: 28.sp,
borderRadius: 20.w,
margin: EdgeInsets.only(left: 30.w, right: 30.w, top: 30.w),
padding: EdgeInsets.only(top: 25.w, bottom: 25.w),
onClick: () {}),
],
);
}
//
Widget getTFWidget(bool isHaveBtn, String tfStr){
Widget getTFWidget(bool isHaveBtn, String tfStr) {
return Container(
height: 50.h,
width: 500.w,
@ -184,7 +255,7 @@ class _AuthorizedAdminPageState extends State<AuthorizedAdminPage> {
maxLines: 1,
// controller: _controller,
autofocus: false,
textAlign:TextAlign.end,
textAlign: TextAlign.end,
decoration: InputDecoration(
//
contentPadding: const EdgeInsets.only(top: 12.0, bottom: 8.0),
@ -194,34 +265,38 @@ class _AuthorizedAdminPageState extends State<AuthorizedAdminPage> {
),
),
),
SizedBox(width: 10.w,),
isHaveBtn?Container(
width: 50.w,
height: 50.w,
decoration: const BoxDecoration(
color: Colors.white,
image: DecorationImage(
image: AssetImage('images/icon_lock.png'),
fit: BoxFit.fill
),
),
alignment: Alignment.center,
child: InkWell(
onTap: () async {
Contact? contact = await _contactPicker.selectContact();
setState(() {
_contact = contact!;
// print("object111111111111 ${_contact.fullName} ${_contact.phoneNumbers}");
});
},
),
):Container()
SizedBox(
width: 10.w,
),
isHaveBtn
? Container(
width: 50.w,
height: 50.w,
decoration: const BoxDecoration(
color: Colors.white,
image: DecorationImage(
image: AssetImage('images/icon_lock.png'),
fit: BoxFit.fill),
),
alignment: Alignment.center,
child: InkWell(
onTap: () async {
Contact? contact = await _contactPicker.selectContact();
setState(() {
_contact = contact!;
// print("object111111111111 ${_contact.fullName} ${_contact.phoneNumbers}");
});
},
),
)
: Container()
],
),
);
}
Switch _switch(){
CupertinoSwitch _switch() {
/*
return Switch(
value: false,
onChanged: (value){
@ -231,6 +306,18 @@ class _AuthorizedAdminPageState extends State<AuthorizedAdminPage> {
});
}
);
*/
bool _isOn = false;
return CupertinoSwitch(
activeColor: CupertinoColors.activeBlue,
trackColor: CupertinoColors.systemGrey5,
thumbColor: CupertinoColors.white,
value: _isOn,
onChanged: (value) {
setState(() {
_isOn = value;
});
},
);
}
}

View File

@ -20,8 +20,11 @@ class _UnlockQRCodePageState extends State<UnlockQRCodePage> {
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: AppColors.mainBackgroundColor,
appBar: TitleAppBar(barTitle: TranslationLoader.lanKeys!.burglarAlarm!.tr, haveBack:true, backgroundColor: AppColors.mainColor),
body:Column(
appBar: TitleAppBar(
barTitle: TranslationLoader.lanKeys!.burglarAlarm!.tr,
haveBack: true,
backgroundColor: AppColors.mainColor),
body: Column(
children: [
Container(
padding: EdgeInsets.all(25.w),
@ -30,11 +33,11 @@ class _UnlockQRCodePageState extends State<UnlockQRCodePage> {
color: Colors.white,
borderRadius: BorderRadius.all(Radius.circular(10.h)),
),
child: Text("拥有电子钥匙的人,通过微信扫一扫这个二维码,即可开门。每把锁的二维码都不相同,你可以将其打印出来贴在对应的锁旁边")
),
child: Text(
"拥有电子钥匙的人,通过微信扫一扫这个二维码,即可开门。每把锁的二维码都不相同,你可以将其打印出来贴在对应的锁旁边")),
Container(
width: 1.sw,
padding: EdgeInsets.only(top:50.w),
padding: EdgeInsets.only(top: 50.w),
margin: EdgeInsets.only(left: 25.w, right: 25.w),
decoration: BoxDecoration(
color: Colors.white,
@ -47,24 +50,25 @@ class _UnlockQRCodePageState extends State<UnlockQRCodePage> {
// data:'二维码',
// size:300,
// ),
//by Daisy ##warning
QrImage(data: 'www.baidu.com', size: 300.w),
SizedBox(height: 50.w,),
SubmitBtn(btnName: TranslationLoader.lanKeys!.share!.tr,
SizedBox(
height: 50.w,
),
SubmitBtn(
btnName: TranslationLoader.lanKeys!.share!.tr,
borderRadius: 20.w,
fontSize: 32.sp,
width: 250.w,
// margin: EdgeInsets.only(left: 03.w, right: 30.w, top: 20.w),
padding: EdgeInsets.only(top: 20.w, bottom: 20.w),
onClick: () {
}
),
SizedBox(height: 60.w,)
onClick: () {}),
SizedBox(
height: 60.w,
)
],
)
),
)),
],
)
);
));
}
}

View File

@ -0,0 +1,152 @@
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import '../../../../appRouters.dart';
import '../../../../app_settings/app_colors.dart';
import '../../../../tools/titleAppBar.dart';
import '../../../../translations/trans_lib.dart';
class AuthorizedAdministratorListPage extends StatefulWidget {
const AuthorizedAdministratorListPage({Key? key}) : super(key: key);
@override
State<AuthorizedAdministratorListPage> createState() =>
_AuthorizedAdministratorListPageState();
}
class _AuthorizedAdministratorListPageState
extends State<AuthorizedAdministratorListPage> {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: AppColors.mainBackgroundColor,
appBar: TitleAppBar(
barTitle: TranslationLoader.lanKeys!.authorizedAdmin!.tr,
haveBack: true,
backgroundColor: AppColors.mainColor,
actionsList: [
IconButton(
icon: const Icon(Icons.add),
onPressed: () {
//
Navigator.pushNamed(context, Routers.authorizedAdminManagePage);
},
),
],
),
body: Column(
children: [
_searchWidget(),
Expanded(child: _buildMainUI()),
],
),
);
}
Widget _searchWidget() {
return Container(
height: 80.h,
margin: EdgeInsets.only(top: 20.w, left: 20.w, right: 20.w),
decoration: BoxDecoration(
color: Colors.white, borderRadius: BorderRadius.circular(5)),
child: TextField(
//
maxLines: 1,
// controller: _controller,
autofocus: false,
decoration: InputDecoration(
//
contentPadding: const EdgeInsets.only(
top: 12.0, left: -19.0, right: -15.0, bottom: 8.0),
hintText: TranslationLoader.lanKeys!.pleaseEnter!.tr,
//线
border: InputBorder.none,
//
icon: Padding(
padding: EdgeInsets.only(
top: 30.w, bottom: 20.w, right: 20.w, left: 20.w),
child: Image.asset(
'images/main/icon_main_search.png',
width: 40.w,
height: 40.w,
),
),
),
),
);
}
Widget _buildMainUI() {
return ListView.builder(
itemCount: 10,
itemBuilder: (c, index) {
return _electronicKeyItem('images/icon_lock.png', "张三",
"2023.6.21 11.15", "2023.6.21 11.15", () {
Navigator.pushNamed(context, Routers.authorizedAdminDetailPage);
});
});
}
Widget _electronicKeyItem(String lockTypeIcon, String lockTypeTitle,
String beginTime, String endTime, Function() action) {
return GestureDetector(
onTap: action,
child: Container(
height: 100.h,
margin: EdgeInsets.only(left: 20.w, right: 20.w, top: 20.w),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(10.w),
),
child: Row(
children: [
SizedBox(
width: 30.w,
),
Image.asset(
lockTypeIcon,
width: 50.w,
height: 50.w,
),
SizedBox(
width: 30.w,
),
Expanded(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Row(
mainAxisAlignment: MainAxisAlignment.start,
children: [
Text(
lockTypeTitle,
style: TextStyle(
fontSize: 32.sp, fontWeight: FontWeight.w500),
),
],
),
SizedBox(height: 5.h),
Container(
child: Row(
mainAxisAlignment: MainAxisAlignment.start,
children: [
Text(
"2023.6.21 11.15 永久",
style: TextStyle(
fontSize: 28.sp, fontWeight: FontWeight.w500),
),
],
),
),
SizedBox(width: 20.h),
],
),
),
SizedBox(width: 20.h),
],
),
),
);
}
}

View File

@ -0,0 +1,163 @@
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import '../../../../appRouters.dart';
import '../../../../app_settings/app_colors.dart';
import '../../../../tools/titleAppBar.dart';
import '../../../../translations/trans_lib.dart';
import '../../../tools/submitBtn.dart';
class LockUserManageListListPage extends StatefulWidget {
const LockUserManageListListPage({Key? key}) : super(key: key);
@override
State<LockUserManageListListPage> createState() =>
_LockUserManageListListPageState();
}
class _LockUserManageListListPageState
extends State<LockUserManageListListPage> {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: AppColors.mainBackgroundColor,
appBar: TitleAppBar(
barTitle: TranslationLoader.lanKeys!.authorizedAdmin!.tr,
haveBack: true,
backgroundColor: AppColors.mainColor,
actionsList: [
TextButton(
child: Text(
TranslationLoader.lanKeys!.aboutToExpire!.tr,
style: const TextStyle(color: Colors.white),
),
onPressed: () {},
),
],
),
body: Column(
children: [
_searchWidget(),
Expanded(child: _buildMainUI()),
SubmitBtn(
btnName: TranslationLoader.lanKeys!.sendGroupKey!.tr,
borderRadius: 20.w,
margin: EdgeInsets.only(
left: 30.w, right: 30.w, top: 30.w, bottom: 30.w),
padding: EdgeInsets.only(top: 25.w, bottom: 25.w),
onClick: () {
Navigator.pushNamed(
context, Routers.massSendElectronicKeyManagePage);
}),
],
),
);
}
Widget _searchWidget() {
return Container(
height: 80.h,
margin: EdgeInsets.only(top: 20.w, left: 20.w, right: 20.w),
decoration: BoxDecoration(
color: Colors.white, borderRadius: BorderRadius.circular(5)),
child: TextField(
//
maxLines: 1,
// controller: _controller,
autofocus: false,
decoration: InputDecoration(
//
contentPadding: const EdgeInsets.only(
top: 12.0, left: -19.0, right: -15.0, bottom: 8.0),
hintText: TranslationLoader.lanKeys!.pleaseEnter!.tr,
//线
border: InputBorder.none,
//
icon: Padding(
padding: EdgeInsets.only(
top: 30.w, bottom: 20.w, right: 20.w, left: 20.w),
child: Image.asset(
'images/main/icon_main_search.png',
width: 40.w,
height: 40.w,
),
),
),
),
);
}
Widget _buildMainUI() {
return ListView.builder(
itemCount: 10,
itemBuilder: (c, index) {
return _electronicKeyItem('images/icon_lock.png', "张三",
"2023.6.21 11.15", "2023.6.21 11.15", () {
Navigator.pushNamed(context, Routers.authorizedAdminDetailPage);
});
});
}
Widget _electronicKeyItem(String lockTypeIcon, String lockTypeTitle,
String beginTime, String endTime, Function() action) {
return GestureDetector(
onTap: action,
child: Container(
height: 100.h,
margin: EdgeInsets.only(left: 20.w, right: 20.w, top: 20.w),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(10.w),
),
child: Row(
children: [
SizedBox(
width: 30.w,
),
Image.asset(
lockTypeIcon,
width: 50.w,
height: 50.w,
),
SizedBox(
width: 30.w,
),
Expanded(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Row(
mainAxisAlignment: MainAxisAlignment.start,
children: [
Text(
lockTypeTitle,
style: TextStyle(
fontSize: 32.sp, fontWeight: FontWeight.w500),
),
],
),
SizedBox(height: 5.h),
Container(
child: Row(
mainAxisAlignment: MainAxisAlignment.start,
children: [
Text(
"2023.6.21 11.15 永久",
style: TextStyle(
fontSize: 28.sp, fontWeight: FontWeight.w500),
),
],
),
),
SizedBox(width: 20.h),
],
),
),
SizedBox(width: 20.h),
],
),
),
);
}
}

View File

@ -1,3 +1,4 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
@ -17,52 +18,128 @@ class MineSetPage extends StatefulWidget {
}
class _MineSetPageState extends State<MineSetPage> {
bool _isOn = false;
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: AppColors.mainBackgroundColor,
appBar: TitleAppBar(barTitle: TranslationLoader.lanKeys!.moreSet!.tr, haveBack:true, backgroundColor: AppColors.mainColor),
body:Column(
appBar: TitleAppBar(
barTitle: TranslationLoader.lanKeys!.moreSet!.tr,
haveBack: true,
backgroundColor: AppColors.mainColor),
body: Column(
children: [
Expanded(
child: ListView(
children: [
CommonItem(leftTitel:TranslationLoader.lanKeys!.prompTone!.tr, rightTitle:"", isHaveLine: true, isHaveRightWidget:true, rightWidget: Container(width: 80.w, height: 50.h,child: _switch())),
CommonItem(leftTitel:TranslationLoader.lanKeys!.touchUnlock!.tr, rightTitle:"", isHaveLine: true, isHaveRightWidget:true, rightWidget: Container(width: 80.w, height: 50.h,child: _switch())),
CommonItem(leftTitel:TranslationLoader.lanKeys!.pushNotification!.tr, rightTitle:"", isHaveRightWidget:true, rightWidget: Container(width: 80.w, height: 50.h,child: _switch())),
SizedBox(height: 10.h,),
CommonItem(leftTitel:TranslationLoader.lanKeys!.lockUserManagement!.tr, rightTitle:"", isHaveLine: true, isHaveDirection: true, action: (){
}),
CommonItem(leftTitel:TranslationLoader.lanKeys!.authorizedAdmin!.tr, rightTitle:"", isHaveLine: true, isHaveDirection: true, action: (){
}),
CommonItem(leftTitel:TranslationLoader.lanKeys!.lockGroup!.tr, rightTitle:"", isHaveLine: true, isHaveDirection: true, action: (){
}),
CommonItem(leftTitel:TranslationLoader.lanKeys!.transferSmartLock!.tr, rightTitle:"", isHaveLine: true, isHaveDirection: true, action: (){
}),
CommonItem(leftTitel:TranslationLoader.lanKeys!.transferGateway!.tr, rightTitle:"", isHaveDirection: true, action: (){
}),
SizedBox(height: 10.h,),
CommonItem(leftTitel:TranslationLoader.lanKeys!.multiLanguage!.tr, rightTitle:"简体中文", isHaveLine: true, isHaveDirection: true, action: (){
Navigator.pushNamed(context, Routers.mineMultiLanguagePage);
}),
CommonItem(leftTitel:TranslationLoader.lanKeys!.lockScreen!.tr, rightTitle:TranslationLoader.lanKeys!.opened!.tr, isHaveLine: true, isHaveDirection: true, action: (){
Navigator.pushNamed(context, Routers.lockScreenPage);
}),
CommonItem(leftTitel:TranslationLoader.lanKeys!.hideInvalidUnlockPermissions!.tr, rightTitle:TranslationLoader.lanKeys!.closed!.tr, isHaveLine: true, isHaveDirection: true, action: (){
Navigator.pushNamed(context, Routers.hideInvalidUnlockPermissionsPage);
}),
CommonItem(leftTitel:TranslationLoader.lanKeys!.appUnlockRequiresMobilePhoneAccessToTheLock!.tr, rightTitle:"", isHaveLine: true, isHaveDirection: true, action: (){
Navigator.pushNamed(context, Routers.aPPUnlockNeedMobileNetworkingLockPage);
}),
CommonItem(
leftTitel: TranslationLoader.lanKeys!.prompTone!.tr,
rightTitle: "",
isHaveLine: true,
isHaveRightWidget: true,
rightWidget: SizedBox(
width: 80.w, height: 50.h, child: _switch())),
CommonItem(
leftTitel: TranslationLoader.lanKeys!.touchUnlock!.tr,
rightTitle: "",
isHaveLine: true,
isHaveRightWidget: true,
rightWidget: SizedBox(
width: 80.w, height: 50.h, child: _switch())),
CommonItem(
leftTitel:
TranslationLoader.lanKeys!.pushNotification!.tr,
rightTitle: "",
isHaveRightWidget: true,
rightWidget: SizedBox(
width: 80.w, height: 50.h, child: _switch())),
SizedBox(
height: 10.h,
),
CommonItem(
leftTitel:
TranslationLoader.lanKeys!.lockUserManagement!.tr,
rightTitle: "",
isHaveLine: true,
isHaveDirection: true,
action: () {
Navigator.pushNamed(
context, Routers.lockUserManageLisPage);
}),
CommonItem(
leftTitel: TranslationLoader.lanKeys!.authorizedAdmin!.tr,
rightTitle: "",
isHaveLine: true,
isHaveDirection: true,
action: () {
Navigator.pushNamed(
context, Routers.authorizedAdministratorListPage);
}),
CommonItem(
leftTitel: TranslationLoader.lanKeys!.lockGroup!.tr,
rightTitle: "",
isHaveLine: true,
isHaveDirection: true,
action: () {}),
CommonItem(
leftTitel:
TranslationLoader.lanKeys!.transferSmartLock!.tr,
rightTitle: "",
isHaveLine: true,
isHaveDirection: true,
action: () {}),
CommonItem(
leftTitel: TranslationLoader.lanKeys!.transferGateway!.tr,
rightTitle: "",
isHaveDirection: true,
action: () {}),
SizedBox(
height: 10.h,
),
CommonItem(
leftTitel: TranslationLoader.lanKeys!.multiLanguage!.tr,
rightTitle: "简体中文",
isHaveLine: true,
isHaveDirection: true,
action: () {
Navigator.pushNamed(
context, Routers.mineMultiLanguagePage);
}),
CommonItem(
leftTitel: TranslationLoader.lanKeys!.lockScreen!.tr,
rightTitle: TranslationLoader.lanKeys!.opened!.tr,
isHaveLine: true,
isHaveDirection: true,
action: () {
Navigator.pushNamed(context, Routers.lockScreenPage);
}),
CommonItem(
leftTitel: TranslationLoader
.lanKeys!.hideInvalidUnlockPermissions!.tr,
rightTitle: TranslationLoader.lanKeys!.closed!.tr,
isHaveLine: true,
isHaveDirection: true,
action: () {
Navigator.pushNamed(
context, Routers.hideInvalidUnlockPermissionsPage);
}),
CommonItem(
leftTitel: TranslationLoader.lanKeys!
.appUnlockRequiresMobilePhoneAccessToTheLock!.tr,
rightTitle: "",
isHaveLine: true,
isHaveDirection: true,
action: () {
Navigator.pushNamed(context,
Routers.aPPUnlockNeedMobileNetworkingLockPage);
}),
// CommonItem(leftTitel:TranslationLoader.lanKeys!.valueAddedServices!.tr, rightTitle:"", isHaveDirection: true, action: (){
//
// }),
SizedBox(height: 10.h,),
SizedBox(
height: 10.h,
),
// CommonItem(leftTitel:TranslationLoader.lanKeys!.about!.tr, rightTitle:"", isHaveLine: true, isHaveDirection: true, action: (){
//
// }),
@ -87,8 +164,7 @@ class _MineSetPageState extends State<MineSetPage> {
),
// keyBottomWidget()
],
)
);
));
}
// Widget keyBottomWidget() {
@ -123,15 +199,17 @@ class _MineSetPageState extends State<MineSetPage> {
// );
// }
Switch _switch(){
return Switch(
value: false,
onChanged: (value){
// switchValue = !switchValue;
setState(() {
});
}
CupertinoSwitch _switch() {
return CupertinoSwitch(
activeColor: CupertinoColors.activeBlue,
trackColor: CupertinoColors.systemGrey5,
thumbColor: CupertinoColors.white,
value: _isOn,
onChanged: (value) {
setState(() {
_isOn = value;
});
},
);
}
}

View File

@ -1,6 +1,6 @@
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:star_lock/app_settings/app_colors.dart';
class CommonItem extends StatelessWidget {
String? leftTitel;
@ -12,14 +12,17 @@ class CommonItem extends StatelessWidget {
Function()? action;
double? allHeight;
CommonItem({Key? key,
required this.leftTitel,
this.rightTitle,
this.allHeight = 45,
this.isHaveDirection = false,
this.isHaveLine = false,
this.isHaveRightWidget = false,
this.rightWidget, this.action}) : super(key: key);
CommonItem(
{Key? key,
required this.leftTitel,
this.rightTitle,
this.allHeight = 45,
this.isHaveDirection = false,
this.isHaveLine = false,
this.isHaveRightWidget = false,
this.rightWidget,
this.action})
: super(key: key);
@override
Widget build(BuildContext context) {
@ -29,27 +32,53 @@ class CommonItem extends StatelessWidget {
// mainAxisAlignment: MainAxisAlignment.center,
children: [
Container(
height: allHeight??70.h,
height: allHeight ?? 70.h,
color: Colors.white,
padding: EdgeInsets.only(left:20.w, right: 10.w),// , top: 20.w, bottom: 20.w
padding: EdgeInsets.only(
left: 20.w, right: 10.w), // , top: 20.w, bottom: 20.w
child: Row(
children: [
SizedBox(width:20.w),
Expanded(child: Text(leftTitel!, style: TextStyle(fontSize: 28.sp, fontWeight: FontWeight.w500))),
SizedBox(width:20.w),
SizedBox(width: 20.w),
Expanded(
child: Text(leftTitel!,
style: TextStyle(
fontSize: 28.sp, fontWeight: FontWeight.w500))),
SizedBox(width: 20.w),
Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
isHaveRightWidget!?rightWidget!:Text(rightTitle!, textAlign: TextAlign.end, style: TextStyle(fontSize: 28.sp, fontWeight: FontWeight.w500),)
isHaveRightWidget!
? rightWidget!
: Text(
rightTitle!,
textAlign: TextAlign.end,
style: TextStyle(
fontSize: 28.sp, fontWeight: FontWeight.w500),
)
],
),
SizedBox(width:5.w),
isHaveDirection!?Image.asset('images/icon_right.png', width: 50.w, height: 50.w,):SizedBox(width:10.w),
SizedBox(width: 5.w),
isHaveDirection!
? Image.asset(
'images/icon_right.png',
width: 50.w,
height: 50.w,
)
: SizedBox(width: 10.w),
// SizedBox(width:10.w),
],
),
),
isHaveLine!?Container(height: 0.5.h, color: Colors.grey,):Container()
// isHaveLine!?Container(height: 0.5.h, color: Colors.grey,):Container()
//by DaisyWu
isHaveLine!
? Divider(
color: AppColors.greyLineColor,
indent: 20.w,
endIndent: 20.w,
height: 1,
)
: Container()
],
),
);

View File

@ -12,7 +12,6 @@ class LanKeyEntity {
this.number,
this.additive,
this.addTime,
this.reset,
this.sendKey,
this.timeLimit,
@ -41,7 +40,6 @@ class LanKeyEntity {
this.fridayShort,
this.saturdayShort,
this.sundayShort,
this.realNameAuthentication,
this.sendKeyBottomTip,
this.send,
@ -85,7 +83,6 @@ class LanKeyEntity {
this.earlyArrivalList,
this.lateList,
this.hardWorkingList,
this.basicInformation,
this.wirelessKeyboard,
this.doorMagnetic,
@ -184,7 +181,6 @@ class LanKeyEntity {
this.beLate,
this.leaveEarly,
this.noCardPunched,
this.lanEnglish,
this.lanChinese,
this.multilingual,
@ -194,7 +190,6 @@ class LanKeyEntity {
this.supportStaff,
this.set,
this.moreServices,
this.moreSet,
this.prompTone,
this.touchUnlock,
@ -204,7 +199,6 @@ class LanKeyEntity {
this.lockGroup,
this.transferSmartLock,
this.transferGateway,
this.multiLanguage,
this.lockScreen,
this.closed,
@ -238,7 +232,7 @@ class LanKeyEntity {
this.problemTwo,
this.problemThree,
this.pleaseEnterYourAnswer,
this.aboutToExpire,
this.designation,
this.state,
this.wifiName,
@ -268,7 +262,6 @@ class LanKeyEntity {
this.preferredDNS,
this.alternativeDNS,
this.noStaticIPIsUsed,
this.allLock,
this.searchAllLockType,
this.doorLock,
@ -284,7 +277,6 @@ class LanKeyEntity {
this.nearbyLock,
this.addSuccessfullyPleaseRename,
this.whenAddingLockThePhoneMustBeNextToTheLock,
this.login,
this.register,
this.forgetPassword,
@ -295,20 +287,17 @@ class LanKeyEntity {
this.email,
this.countryAndRegion,
this.selet,
this.businessCooperation,
this.officialWebsite,
this.computerWebVersion,
this.hotelSystem,
this.manualWebVersion,
this.introduce,
this.note,
this.mail,
this.advancedFunction,
this.pushMessage,
this.recordsRetention,
this.smsBuyTip,
this.emailBuyTip,
this.currentRemainingQuantity,
@ -316,14 +305,12 @@ class LanKeyEntity {
this.customSMSTemplate,
this.customMailTemplate,
this.record,
this.buyRealNameTip,
this.buyRealNameSeletYouWantBuyTip,
this.forTheFirstTime,
this.onceDay,
this.weekOnce,
this.monthOnce,
this.currentState,
this.onTrial,
this.haveNotOpened,
@ -335,7 +322,6 @@ class LanKeyEntity {
this.tipsForBuyingAdvancedFeatures,
this.freeTrial,
this.openNow,
this.buySMS,
this.buyMail,
this.buyRealNameAuthenticationTimes,
@ -344,7 +330,6 @@ class LanKeyEntity {
this.modeOfPayment,
this.alipay,
this.goToPay,
this.customTemplatesTip,
this.haveOpened,
this.unHaveOpenedTip1,
@ -367,12 +352,10 @@ class LanKeyEntity {
this.and,
this.willBeReplacedWithTheActualValue,
this.downloadLink,
this.lockScreenTip,
this.hideInvalidUnlockPermissionsTip,
this.appUnlockRequiresMobilePhoneAccessToTheLockTip,
this.checkAll,
});
LanKeyEntity.fromJson(dynamic json) {
@ -520,8 +503,10 @@ class LanKeyEntity {
whenScreenFlashesClickNext = json['whenScreenFlashesClickNext'];
theScreenNeverFlickered = json['theScreenNeverFlickered'];
enterNumberOrPressSet = json['enterNumberOrPressSet'];
theLocationOfTheSetKeyWillBeDifferent = json['theLocationOfTheSetKeyWillBeDifferent'];
pressAndHoldTheResetButtonTwoSeconds = json['pressAndHoldTheResetButtonTwoSeconds'];
theLocationOfTheSetKeyWillBeDifferent =
json['theLocationOfTheSetKeyWillBeDifferent'];
pressAndHoldTheResetButtonTwoSeconds =
json['pressAndHoldTheResetButtonTwoSeconds'];
nearbyEquipment = json['nearbyEquipment'];
noData = json['noData'];
doorMagneticListTopTip = json['doorMagneticListTopTip'];
@ -586,12 +571,14 @@ class LanKeyEntity {
closed = json['closed'];
opened = json['opened'];
hideInvalidUnlockPermissions = json['hideInvalidUnlockPermissions'];
appUnlockRequiresMobilePhoneAccessToTheLock = json['appUnlockRequiresMobilePhoneAccessToTheLock'];
appUnlockRequiresMobilePhoneAccessToTheLock =
json['appUnlockRequiresMobilePhoneAccessToTheLock'];
valueAddedServices = json['valueAddedServices'];
about = json['about'];
userAgreement = json['userAgreement'];
privacyPolicy = json['privacyPolicy'];
personalInformationCollectionList = json['personalInformationCollectionList'];
personalInformationCollectionList =
json['personalInformationCollectionList'];
applicationPermissionDescription = json['applicationPermissionDescription'];
thirdPartyInformationSharingList = json['thirdPartyInformationSharingList'];
logout = json['logout'];
@ -614,6 +601,7 @@ class LanKeyEntity {
problemTwo = json['problemTwo'];
problemThree = json['problemThree'];
pleaseEnterYourAnswer = json['pleaseEnterYourAnswer'];
aboutToExpire = json['aboutToExpire'];
designation = json['designation'];
state = json['state'];
@ -642,12 +630,12 @@ class LanKeyEntity {
ipAddress = json['ipAddress'];
subnetMask = json['subnetMask'];
defaultGateway = json['defaultGateway'];
automaticallyGetTheDNSServerAddress = json['automaticallyGetTheDNSServerAddress'];
automaticallyGetTheDNSServerAddress =
json['automaticallyGetTheDNSServerAddress'];
preferredDNS = json['preferredDNS'];
alternativeDNS = json['alternativeDNS'];
noStaticIPIsUsed = json['noStaticIPIsUsed'];
allLock = json['allLock'];
searchAllLockType = json['searchAllLockType'];
doorLock = json['doorLock'];
@ -662,7 +650,8 @@ class LanKeyEntity {
next = json['next'];
nearbyLock = json['nearbyLock'];
addSuccessfullyPleaseRename = json['addSuccessfullyPleaseRename'];
whenAddingLockThePhoneMustBeNextToTheLock = json['whenAddingLockThePhoneMustBeNextToTheLock'];
whenAddingLockThePhoneMustBeNextToTheLock =
json['whenAddingLockThePhoneMustBeNextToTheLock'];
login = json['login'];
register = json['register'];
@ -706,7 +695,8 @@ class LanKeyEntity {
currentState = json['currentState'];
onTrial = json['onTrial'];
haveNotOpened = json['haveNotOpened'];
advancedFeaturesAndBenefitsContent = json['advancedFeaturesAndBenefitsContent'];
advancedFeaturesAndBenefitsContent =
json['advancedFeaturesAndBenefitsContent'];
smsTemplate = json['smsTemplate'];
emailTemplate = json['emailTemplate'];
cardIssuingtool = json['cardIssuingtool'];
@ -749,7 +739,8 @@ class LanKeyEntity {
lockScreenTip = json['lockScreenTip'];
hideInvalidUnlockPermissionsTip = json['hideInvalidUnlockPermissionsTip'];
appUnlockRequiresMobilePhoneAccessToTheLockTip = json['appUnlockRequiresMobilePhoneAccessToTheLockTip'];
appUnlockRequiresMobilePhoneAccessToTheLockTip =
json['appUnlockRequiresMobilePhoneAccessToTheLockTip'];
checkAll = json['checkAll'];
}
String? starLock;
@ -990,6 +981,7 @@ class LanKeyEntity {
String? problemTwo;
String? problemThree;
String? pleaseEnterYourAnswer;
String? aboutToExpire;
String? designation;
String? state;
@ -1275,8 +1267,10 @@ class LanKeyEntity {
map['whenScreenFlashesClickNext'] = whenScreenFlashesClickNext;
map['theScreenNeverFlickered'] = theScreenNeverFlickered;
map['enterNumberOrPressSet'] = enterNumberOrPressSet;
map['theLocationOfTheSetKeyWillBeDifferent'] = theLocationOfTheSetKeyWillBeDifferent;
map['pressAndHoldTheResetButtonTwoSeconds'] = pressAndHoldTheResetButtonTwoSeconds;
map['theLocationOfTheSetKeyWillBeDifferent'] =
theLocationOfTheSetKeyWillBeDifferent;
map['pressAndHoldTheResetButtonTwoSeconds'] =
pressAndHoldTheResetButtonTwoSeconds;
map['nearbyEquipment'] = nearbyEquipment;
map['noData'] = noData;
map['doorMagneticListTopTip'] = doorMagneticListTopTip;
@ -1337,12 +1331,14 @@ class LanKeyEntity {
map['closed'] = closed;
map['opened'] = opened;
map['hideInvalidUnlockPermissions'] = hideInvalidUnlockPermissions;
map['appUnlockRequiresMobilePhoneAccessToTheLock'] = appUnlockRequiresMobilePhoneAccessToTheLock;
map['appUnlockRequiresMobilePhoneAccessToTheLock'] =
appUnlockRequiresMobilePhoneAccessToTheLock;
map['valueAddedServices'] = valueAddedServices;
map['about'] = about;
map['userAgreement'] = userAgreement;
map['privacyPolicy'] = privacyPolicy;
map['personalInformationCollectionList'] = personalInformationCollectionList;
map['personalInformationCollectionList'] =
personalInformationCollectionList;
map['applicationPermissionDescription'] = applicationPermissionDescription;
map['thirdPartyInformationSharingList'] = thirdPartyInformationSharingList;
map['logout'] = logout;
@ -1366,6 +1362,7 @@ class LanKeyEntity {
map['problemTwo'] = problemTwo;
map['problemThree'] = problemThree;
map['pleaseEnterYourAnswer'] = pleaseEnterYourAnswer;
map['aboutToExpire'] = aboutToExpire;
map['designation'] = designation;
map['state'] = state;
@ -1392,7 +1389,8 @@ class LanKeyEntity {
map['ipAddress'] = ipAddress;
map['subnetMask'] = subnetMask;
map['defaultGateway'] = defaultGateway;
map['automaticallyGetTheDNSServerAddress'] = automaticallyGetTheDNSServerAddress;
map['automaticallyGetTheDNSServerAddress'] =
automaticallyGetTheDNSServerAddress;
map['preferredDNS'] = preferredDNS;
map['alternativeDNS'] = alternativeDNS;
map['noStaticIPIsUsed'] = noStaticIPIsUsed;
@ -1411,7 +1409,8 @@ class LanKeyEntity {
map['next'] = next;
map['nearbyLock'] = nearbyLock;
map['addSuccessfullyPleaseRename'] = addSuccessfullyPleaseRename;
map['whenAddingLockThePhoneMustBeNextToTheLock'] = whenAddingLockThePhoneMustBeNextToTheLock;
map['whenAddingLockThePhoneMustBeNextToTheLock'] =
whenAddingLockThePhoneMustBeNextToTheLock;
map['login'] = login;
map['register'] = register;
@ -1455,7 +1454,8 @@ class LanKeyEntity {
map['currentState'] = currentState;
map['onTrial'] = onTrial;
map['haveNotOpened'] = haveNotOpened;
map['advancedFeaturesAndBenefitsContent'] = advancedFeaturesAndBenefitsContent;
map['advancedFeaturesAndBenefitsContent'] =
advancedFeaturesAndBenefitsContent;
map['smsTemplate'] = smsTemplate;
map['emailTemplate'] = emailTemplate;
map['cardIssuingtool'] = cardIssuingtool;
@ -1498,9 +1498,10 @@ class LanKeyEntity {
map['lockScreenTip'] = lockScreenTip;
map['hideInvalidUnlockPermissionsTip'] = hideInvalidUnlockPermissionsTip;
map['appUnlockRequiresMobilePhoneAccessToTheLockTip'] = appUnlockRequiresMobilePhoneAccessToTheLockTip;
map['appUnlockRequiresMobilePhoneAccessToTheLockTip'] =
appUnlockRequiresMobilePhoneAccessToTheLockTip;
map['checkAll'] = checkAll;
return map;
}
}
}