diff --git a/lib/constants/application_objects.dart b/lib/constants/application_objects.dart index 22709154..5d1e5782 100644 --- a/lib/constants/application_objects.dart +++ b/lib/constants/application_objects.dart @@ -72,7 +72,7 @@ List appObjects = [ AO('投诉表扬', R.ASSETS_APPLICATIONS_COMPLAINT_PNG, AdvicePage(type: AdviceType.COMPLAIN)), AO('问卷调查', R.ASSETS_APPLICATIONS_QUESTION_PNG, QuestionnairePage()), - AO('装修管理', R.ASSETS_APPLICATIONS_DECORATION_PNG, FitupManagePage()), + // AO('装修管理', R.ASSETS_APPLICATIONS_DECORATION_PNG, FitupManagePage()), AO('借还管理', R.ASSETS_APPLICATIONS_BORROW_PNG, GoodsManagePage()), AO('一键报警', R.ASSETS_APPLICATIONS_POLICE_PNG, AlarmPage()), ]; @@ -119,7 +119,7 @@ List _smartManagerApp = [ '物品出门', '投诉表扬', '问卷调查', - '装修管理', + // '装修管理', '借还管理', '一键报警', ]; diff --git a/lib/pages/splash/splash_page.dart b/lib/pages/splash/splash_page.dart index 7e8851c0..1384fa6f 100644 --- a/lib/pages/splash/splash_page.dart +++ b/lib/pages/splash/splash_page.dart @@ -7,6 +7,7 @@ import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:get/get.dart'; import 'package:hive/hive.dart'; import 'package:hive_flutter/hive_flutter.dart'; +import 'package:permission_handler/permission_handler.dart'; import 'package:power_logger/power_logger.dart'; import 'package:provider/provider.dart'; import 'package:velocity_x/velocity_x.dart'; @@ -36,6 +37,7 @@ class _SplashPageState extends State { //初始化AMap await AmapLocation.instance.init(iosKey: 'ios key'); + await Permission.locationWhenInUse.request(); } Future _initOp() async { diff --git a/lib/ui/community/notice/notice_card.dart b/lib/ui/community/notice/notice_card.dart index ac3c1337..f7e00e2c 100644 --- a/lib/ui/community/notice/notice_card.dart +++ b/lib/ui/community/notice/notice_card.dart @@ -92,21 +92,18 @@ class NoticeCard extends StatelessWidget { opaque: false, ); }, - child: Hero( - tag: model.imgUrls.first.url, - child: Container( - clipBehavior: Clip.antiAlias, - decoration: BoxDecoration( - color: Colors.black12, - borderRadius: BorderRadius.circular(8.w), - ), - child: FadeInImage.assetNetwork( - placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, - image: API.image(model.imgUrls.first.url), - width: 152.w, - height: 152.w, - fit: BoxFit.cover, - ), + child: Container( + clipBehavior: Clip.antiAlias, + decoration: BoxDecoration( + color: Colors.black12, + borderRadius: BorderRadius.circular(8.w), + ), + child: FadeInImage.assetNetwork( + placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, + image: API.image(model.imgUrls.first.url), + width: 152.w, + height: 152.w, + fit: BoxFit.cover, ), ), ),