diff --git a/android/app/build.gradle b/android/app/build.gradle index f4a4197b..07302d39 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -111,7 +111,6 @@ android { versionCode flutterVersionCode.toInteger() versionName flutterVersionName - ndk { /// 选择要添加的对应.so 库。 abiFilters 'armeabi-v7a', 'arm64-v8a' diff --git a/android/app/libs/BaiduLBS_Android.jar b/android/app/libs/BaiduLBS_Android.jar deleted file mode 100644 index cd6b83fc..00000000 Binary files a/android/app/libs/BaiduLBS_Android.jar and /dev/null differ diff --git a/android/app/libs/arm64-v8a/libAMapSDK_MAP_v7_9_1.so b/android/app/libs/arm64-v8a/libAMapSDK_MAP_v7_9_1.so deleted file mode 100644 index dfdd5e0e..00000000 Binary files a/android/app/libs/arm64-v8a/libAMapSDK_MAP_v7_9_1.so and /dev/null differ diff --git a/android/app/libs/armeabi-v7a/libAMapSDK_MAP_v7_9_1.so b/android/app/libs/armeabi-v7a/libAMapSDK_MAP_v7_9_1.so deleted file mode 100644 index a21ea0fa..00000000 Binary files a/android/app/libs/armeabi-v7a/libAMapSDK_MAP_v7_9_1.so and /dev/null differ diff --git a/lib/home/home_page.dart b/lib/home/home_page.dart index 11406468..2adc0561 100644 --- a/lib/home/home_page.dart +++ b/lib/home/home_page.dart @@ -592,7 +592,7 @@ class _HomePage extends State with AutomaticKeepAliveClientMixin { style: TextStyle( color: Color(0xFF727272), fontSize: 12.sp, - fontWeight: MyFontWeight.regular), + fontWeight: MyFontWeight.regular,), ), ], ), @@ -607,6 +607,7 @@ class _HomePage extends State with AutomaticKeepAliveClientMixin { physics: BouncingScrollPhysics(), viewportFraction: 0.32, scale: 0.7, + loop: true, itemBuilder: (context, position) { return Container( // height: 60.h, @@ -634,7 +635,7 @@ class _HomePage extends State with AutomaticKeepAliveClientMixin { ); }, itemCount: - (brandData != null && brandData.length > 0) ? brandData.length : 0, + (brandData != null && brandData.length > 0) ? brandData.length : 1, ), // child: ListView.builder( // padding: EdgeInsets.only(left: 10.w, right: 10.w), diff --git a/lib/utils/location.dart b/lib/utils/location.dart index 75a6c0cd..404ed9fd 100644 --- a/lib/utils/location.dart +++ b/lib/utils/location.dart @@ -88,7 +88,7 @@ class Location { S.of(context).weilexiangnintuijianfujindemendianxinxi, S.of(context).dakaidingwei, (result) async { - if (result) { + if(result) { final AndroidIntent intent = AndroidIntent( action: 'action_location_source_settings', package: "com.zsw.huixiang");