是否安卓

pull/1/head
王亚玲 2 years ago
parent c341d4ff95
commit 611b9f688b

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

@ -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');

@ -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<TabNavigator>
HomePage(),
MarketPage(),
// PropertyPage(),
AllApplicationNewPage(),
Platform.isAndroid ? OpeningCodePage() : AllApplicationNewPage(),
///android ios
CommunityPage(),
PersonalIndex(
refreshController: _refreshController,
@ -165,7 +169,10 @@ class _TabNavigatorState extends State<TabNavigator>
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),
),
),
),

Loading…
Cancel
Save