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 }; } }