feat: add build date

This commit is contained in:
Kingtous
2022-11-17 16:36:07 +08:00
parent 2158f928e6
commit d24e7b25ab
4 changed files with 16 additions and 4 deletions

View File

@@ -1029,10 +1029,12 @@ class _AboutState extends State<_About> {
return _futureBuilder(future: () async {
final license = await bind.mainGetLicense();
final version = await bind.mainGetVersion();
return {'license': license, 'version': version};
final buildDate = await bind.mainGetBuildDate();
return {'license': license, 'version': version, 'buildDate': buildDate};
}(), hasData: (data) {
final license = data['license'].toString();
final version = data['version'].toString();
final buildDate = data['buildDate'].toString();
const linkStyle = TextStyle(decoration: TextDecoration.underline);
final scrollController = ScrollController();
return DesktopScrollWrapper(
@@ -1048,6 +1050,7 @@ class _AboutState extends State<_About> {
height: 8.0,
),
Text('Version: $version').marginSymmetric(vertical: 4.0),
Text('Build Date: $buildDate').marginSymmetric(vertical: 4.0),
InkWell(
onTap: () {
launchUrlString('https://rustdesk.com/privacy');