Skip to content

Commit

Permalink
feat: clarify architecture in about section
Browse files Browse the repository at this point in the history
This commit changes `Arch` to `Supported Arch(s)`
  • Loading branch information
validcube authored and Ushie committed Jun 7, 2023
1 parent 67c5d67 commit 2e38a45
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lib/ui/widgets/settingsView/about_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class _AboutWidgetState extends State<AboutWidget> {
text: 'Version: ${snapshot.data!['version']}\n'
'Model: ${snapshot.data!['model']}\n'
'Android Version: ${snapshot.data!['androidVersion']}\n'
'Arch: ${snapshot.data!['arch']}\n',
'${snapshot.data!['supportedArch'].length > 1 ? 'Supported Archs' : 'Supported Arch'}: ${snapshot.data!['supportedArch'].join(", ")}\n',
),
);
ScaffoldMessenger.of(context).showSnackBar(
Expand Down Expand Up @@ -84,7 +84,9 @@ class _AboutWidgetState extends State<AboutWidget> {
),
),
Text(
'Arch: ${snapshot.data!['arch']}',
snapshot.data!['supportedArch'].length > 1
? 'Supported Archs: ${snapshot.data!['supportedArch'].join(", ")}'
: 'Supported Arch: ${snapshot.data!['supportedArch']}',
style: const TextStyle(
fontSize: 13,
fontWeight: FontWeight.w300,
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/about_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class AboutInfo {
'flavor': kReleaseMode ? 'release' : 'debug',
'model': info.model,
'androidVersion': info.version.release,
'arch': info.supportedAbis
'supportedArch': info.supportedAbis
};
}
}

0 comments on commit 2e38a45

Please sign in to comment.