From a0bbdf8db01ee4b07fbdfc84e67521cb26ebc502 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cyanghuaxuan=E2=80=9D?= <“646903573@qq.com”> Date: Wed, 19 May 2021 11:25:27 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=85=B3=E4=BA=8E=E6=88=91=E4=BB=AC=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=9E=84=E5=BB=BA=E6=97=B6=E9=97=B4=E6=88=B3=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/about_us_page/about_us_page.dart | 3 +-- lib/pages/about_us_page/bloc/about_us_repository.dart | 1 + lib/pages/about_us_page/model/about_us_model.dart | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/pages/about_us_page/about_us_page.dart b/lib/pages/about_us_page/about_us_page.dart index d0ace9f..b45f189 100644 --- a/lib/pages/about_us_page/about_us_page.dart +++ b/lib/pages/about_us_page/about_us_page.dart @@ -142,7 +142,7 @@ class __AboutUsPageContainerState extends State<_AboutUsPageContainer> { color: HexColor.fromHex(model?.appVersionColor ?? '#999999'), )), TextSpan( - text: ' ${model?.appVerison ?? '1.0.0'}', + text: ' ${model?.appVerison ?? '1.0.0'}'+' (${model?.appVersionCode??"000"})', style: TextStyle( fontSize: 11, color: HexColor.fromHex(model?.appVersionColor ?? '#999999'), @@ -150,7 +150,6 @@ class __AboutUsPageContainerState extends State<_AboutUsPageContainer> { ]), ), const SizedBox(height: 20), - /// 更新,评价 _isiOSReview ? Container() : _buildListWidget(model), _buildAgreement(model) diff --git a/lib/pages/about_us_page/bloc/about_us_repository.dart b/lib/pages/about_us_page/bloc/about_us_repository.dart index c663db6..3bd0220 100644 --- a/lib/pages/about_us_page/bloc/about_us_repository.dart +++ b/lib/pages/about_us_page/bloc/about_us_repository.dart @@ -56,6 +56,7 @@ class AboutUsRepository { AboutUsModel model = AboutUsModel.fromJson(jsonDecode(modListData)); if (!EmptyUtil.isEmpty(packageInfo) && !EmptyUtil.isEmpty(model)) { model.appVerison = packageInfo.version; + model.appVersionCode=packageInfo.buildNumber; return model; } } diff --git a/lib/pages/about_us_page/model/about_us_model.dart b/lib/pages/about_us_page/model/about_us_model.dart index 5a2ec53..e25d3f1 100644 --- a/lib/pages/about_us_page/model/about_us_model.dart +++ b/lib/pages/about_us_page/model/about_us_model.dart @@ -13,6 +13,7 @@ class AboutUsModel { String bottomName; String bottomNameColor; String appVerison; + String appVersionCode; AboutUsModel( {this.appBarName,