diff --git a/assets/home/ic_kaimen_android.png b/assets/home/ic_kaimen_android.png new file mode 100644 index 00000000..93595d07 Binary files /dev/null and b/assets/home/ic_kaimen_android.png differ diff --git a/assets/home/ic_kaimen.png b/assets/home/ic_kaimen_ios.png similarity index 100% rename from assets/home/ic_kaimen.png rename to assets/home/ic_kaimen_ios.png diff --git a/lib/gen/assets.gen.dart b/lib/gen/assets.gen.dart index 99c95b26..750b4933 100644 --- a/lib/gen/assets.gen.dart +++ b/lib/gen/assets.gen.dart @@ -134,9 +134,13 @@ class $AssetsHomeGen { AssetGenImage get icGonggao => const AssetGenImage('assets/home/ic_gonggao.png'); - /// File path: assets/home/ic_kaimen.png - AssetGenImage get icKaimen => - const AssetGenImage('assets/home/ic_kaimen.png'); + /// File path: assets/home/ic_kaimen_android.png + AssetGenImage get icKaimenAndroid => + const AssetGenImage('assets/home/ic_kaimen_android.png'); + + /// File path: assets/home/ic_kaimen_ios.png + AssetGenImage get icKaimenIos => + const AssetGenImage('assets/home/ic_kaimen_ios.png'); /// File path: assets/home/ic_ljcw.png AssetGenImage get icLjcw => const AssetGenImage('assets/home/ic_ljcw.png'); diff --git a/lib/pages/tab_navigator.dart b/lib/pages/tab_navigator.dart index ddad9636..1f8be218 100644 --- a/lib/pages/tab_navigator.dart +++ b/lib/pages/tab_navigator.dart @@ -1,3 +1,5 @@ +import 'dart:io'; +import 'package:aku_new_community/pages/property/property_page.dart'; import 'package:aku_new_community/ui/home/application/all_application_new.dart'; import 'package:flutter/material.dart'; @@ -53,7 +55,9 @@ class _TabNavigatorState extends State HomePage(), MarketPage(), // PropertyPage(), - AllApplicationNewPage(), + Platform.isAndroid ? OpeningCodePage() : AllApplicationNewPage(), + + ///android的时候开门码 ios的时候全部应用 CommunityPage(), PersonalIndex( refreshController: _refreshController, @@ -165,7 +169,10 @@ class _TabNavigatorState extends State borderRadius: BorderRadius.circular(54.w), color: Color(0xFFFDE019), ), - child: Assets.home.icKaimen.image(width: 80.w, height: 80.w), + child: Platform.isAndroid + ? Assets.home.icKaimenAndroid + .image(width: 80.w, height: 80.w) + : Assets.home.icKaimenIos.image(width: 80.w, height: 80.w), ), ), ),