We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00950c7 commit 64cbb68Copy full SHA for 64cbb68
lib/utils/about_info.dart
@@ -6,9 +6,12 @@ class AboutInfo {
6
static Future<Map<String, dynamic>> getInfo() async {
7
final packageInfo = await PackageInfo.fromPlatform();
8
final info = await DeviceInfoPlugin().androidInfo;
9
+ const buildFlavor =
10
+ kReleaseMode ? 'release' : (kProfileMode ? 'profile' : 'debug');
11
+
12
return {
13
'version': packageInfo.version,
- 'flavor': kReleaseMode ? 'release' : 'debug',
14
+ 'flavor': buildFlavor,
15
'model': info.model,
16
'androidVersion': info.version.release,
17
'supportedArch': info.supportedAbis,
0 commit comments