屏幕适配库升级

高德隐私合规设置
master
张萌 3 years ago
parent ee87661707
commit f18b94a8a6

@ -15,4 +15,12 @@
## AMap Location ## AMap Location
-keep class com.amap.api.location.**{*;} -keep class com.amap.api.location.**{*;}
-keep class com.amap.api.fence.**{*;} -keep class com.amap.api.fence.**{*;}
-keep class com.loc.**{*;}
-keep class com.autonavi.aps.amapapi.model.**{*;} -keep class com.autonavi.aps.amapapi.model.**{*;}
##搜索
-keep class com.amap.api.services.**{*;}
##2D地图
-keep class com.amap.api.maps2d.**{*;}
-keep class com.amap.api.mapcore2d.**{*;}

@ -96,7 +96,15 @@ class MyApp extends StatelessWidget {
title: '小蜜蜂管家', title: '小蜜蜂管家',
theme: AppTheme.theme, theme: AppTheme.theme,
home: SplashPage(), home: SplashPage(),
builder: BotToastInit(), builder: (context, widget) {
ScreenUtil.setContext(context);
return MediaQuery(
//Setting font does not change with system font size
data:
MediaQuery.of(context).copyWith(textScaleFactor: 1.0),
child: BotToastInit().call(context, widget),
);
},
navigatorObservers: [ navigatorObservers: [
BotToastNavigatorObserver(), BotToastNavigatorObserver(),
], ],

@ -47,7 +47,11 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return AkuScaffold( return WillPopScope(
onWillPop: () async {
return false;
},
child: AkuScaffold(
title: '', title: '',
backgroundColor: Colors.white, backgroundColor: Colors.white,
body: Column( body: Column(
@ -73,6 +77,7 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
BottomTip(), BottomTip(),
], ],
), ),
),
); );
} }

@ -44,7 +44,11 @@ class _SetPsdPageState extends State<SetPsdPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return AkuScaffold( return WillPopScope(
onWillPop: () async {
return false;
},
child: AkuScaffold(
title: '', title: '',
backgroundColor: Colors.white, backgroundColor: Colors.white,
body: Column( body: Column(
@ -78,7 +82,8 @@ class _SetPsdPageState extends State<SetPsdPage> {
144.w.heightBox, 144.w.heightBox,
PsdTextField(controller: _psdController, hintText: '请输入密码'), PsdTextField(controller: _psdController, hintText: '请输入密码'),
24.w.heightBox, 24.w.heightBox,
PsdTextField(controller: _confirmPsdController, hintText: '请再次输入密码'), PsdTextField(
controller: _confirmPsdController, hintText: '请再次输入密码'),
16.w.heightBox, 16.w.heightBox,
PsdVerify.checkString(psdCheck) PsdVerify.checkString(psdCheck)
.text .text
@ -100,6 +105,7 @@ class _SetPsdPageState extends State<SetPsdPage> {
text: '确认'), text: '确认'),
], ],
), ),
),
); );
} }
} }

@ -506,6 +506,8 @@ class _InspectionManageDetailsPageState
height: 343.w, height: 343.w,
child: AMapWidget( child: AMapWidget(
apiKey: AMapApiKey(androidKey: '0c11d9ba47089d971dc4d889b66593ab'), apiKey: AMapApiKey(androidKey: '0c11d9ba47089d971dc4d889b66593ab'),
privacyStatement: AMapPrivacyStatement(
hasContains: true, hasShow: true, hasAgree: true),
rotateGesturesEnabled: false, rotateGesturesEnabled: false,
scaleEnabled: false, scaleEnabled: false,
scrollGesturesEnabled: false, scrollGesturesEnabled: false,

File diff suppressed because it is too large Load Diff

@ -16,7 +16,7 @@ dependencies:
intl: ^0.17.0 intl: ^0.17.0
cupertino_icons: ^1.0.2 cupertino_icons: ^1.0.2
#屏幕适配 #屏幕适配
flutter_screenutil: ^5.0.0-nullsafety.11 flutter_screenutil: ^5.3.1
#状态管理 #状态管理
provider: ^5.0.0 provider: ^5.0.0
#路由 #路由

Loading…
Cancel
Save