From 6c30f9a63a3fc649d1fc8dbfd916554c168db9cd Mon Sep 17 00:00:00 2001 From: Alberto Ponces Date: Wed, 14 Sep 2022 12:25:35 +0100 Subject: [PATCH] fix: We do not need build number for now --- assets/i18n/en.json | 2 +- lib/ui/widgets/settingsView/about_widget.dart | 10 +--------- lib/utils/about_info.dart | 4 +--- 3 files changed, 3 insertions(+), 13 deletions(-) diff --git a/assets/i18n/en.json b/assets/i18n/en.json index b8e3362c..84d457b3 100644 --- a/assets/i18n/en.json +++ b/assets/i18n/en.json @@ -111,7 +111,7 @@ "logsLabel": "Logs", "logsHint": "Share device debug logs", "aboutLabel": "About", - "versionLabel": "Version" + "snackbarMessage": "Copied to clipboard" }, "appInfoView": { "widgetTitle": "App Info", diff --git a/lib/ui/widgets/settingsView/about_widget.dart b/lib/ui/widgets/settingsView/about_widget.dart index db20f536..07d03722 100644 --- a/lib/ui/widgets/settingsView/about_widget.dart +++ b/lib/ui/widgets/settingsView/about_widget.dart @@ -38,7 +38,6 @@ class _AboutWidgetState extends State { Clipboard.setData( ClipboardData( text: 'Version: ${snapshot.data!['version']}\n' - 'Build: ${snapshot.data!['buildNumber']}\n' 'Model: ${snapshot.data!['model']}\n' 'Android Version: ${snapshot.data!['androidVersion']}\n' 'Arch: ${snapshot.data!['arch']}\n', @@ -46,7 +45,7 @@ class _AboutWidgetState extends State { ); ScaffoldMessenger.of(context).showSnackBar( SnackBar( - content: const Text('Copied to clipboard'), + content: I18nText('settingsView.snackbarMessage'), backgroundColor: Theme.of(context).colorScheme.secondary, ), @@ -62,13 +61,6 @@ class _AboutWidgetState extends State { fontWeight: FontWeight.w300, ), ), - Text( - 'Build: ${snapshot.data!['buildNumber']}', - style: const TextStyle( - fontSize: 13, - fontWeight: FontWeight.w300, - ), - ), Text( 'Model: ${snapshot.data!['model']}', style: const TextStyle( diff --git a/lib/utils/about_info.dart b/lib/utils/about_info.dart index 47af6203..26b484f6 100644 --- a/lib/utils/about_info.dart +++ b/lib/utils/about_info.dart @@ -5,13 +5,11 @@ class AboutInfo { static Future> getInfo() async { final packageInfo = await PackageInfo.fromPlatform(); final info = await DeviceInfoPlugin().androidInfo; - return { 'version': packageInfo.version, - 'buildNumber': packageInfo.buildNumber, 'model': info.model, 'androidVersion': info.version.release, - 'arch': info.supported64BitAbis + 'arch': info.supportedAbis.first }; } }