mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-27 11:16:45 +00:00
Bugfix About application page for desktop
This commit is contained in:
parent
80e0488700
commit
43411adf2c
|
@ -1,4 +1,5 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:selfprivacy/config/brand_theme.dart';
|
||||
import 'package:selfprivacy/ui/components/brand_divider/brand_divider.dart';
|
||||
import 'package:selfprivacy/ui/components/brand_header/brand_header.dart';
|
||||
|
@ -35,7 +36,14 @@ class InfoPage extends StatelessWidget {
|
|||
);
|
||||
|
||||
Future<String> _version() async {
|
||||
String packageVersion = 'unknown';
|
||||
try {
|
||||
final PackageInfo packageInfo = await PackageInfo.fromPlatform();
|
||||
return packageInfo.version;
|
||||
packageVersion = packageInfo.version;
|
||||
} catch (e) {
|
||||
print(e);
|
||||
}
|
||||
|
||||
return packageVersion;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue