feat: clarify architecture in about section

This commit changes `Arch` to `Supported Arch(s)`
This commit is contained in:
Pun 2023-06-02 21:43:41 +07:00 committed by Ushie
parent 67c5d67a61
commit 2e38a4567a
2 changed files with 5 additions and 3 deletions

View File

@ -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(
@ -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,

View File

@ -11,7 +11,7 @@ class AboutInfo {
'flavor': kReleaseMode ? 'release' : 'debug',
'model': info.model,
'androidVersion': info.version.release,
'arch': info.supportedAbis
'supportedArch': info.supportedAbis
};
}
}