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,