add build date to mobile
This commit is contained in:
parent
0e61d4e819
commit
22b0b54527
@ -47,6 +47,7 @@ class _SettingsState extends State<SettingsPage> with WidgetsBindingObserver {
|
|||||||
var _localIP = "";
|
var _localIP = "";
|
||||||
var _directAccessPort = "";
|
var _directAccessPort = "";
|
||||||
var _fingerprint = "";
|
var _fingerprint = "";
|
||||||
|
var _buildDate = "";
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
@ -143,6 +144,12 @@ class _SettingsState extends State<SettingsPage> with WidgetsBindingObserver {
|
|||||||
_fingerprint = fingerprint;
|
_fingerprint = fingerprint;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
final buildDate = await bind.mainGetBuildDate();
|
||||||
|
if (_buildDate != buildDate) {
|
||||||
|
update = true;
|
||||||
|
_buildDate = buildDate;
|
||||||
|
}
|
||||||
|
|
||||||
if (update) {
|
if (update) {
|
||||||
setState(() {});
|
setState(() {});
|
||||||
}
|
}
|
||||||
@ -470,6 +477,13 @@ class _SettingsState extends State<SettingsPage> with WidgetsBindingObserver {
|
|||||||
)),
|
)),
|
||||||
),
|
),
|
||||||
leading: Icon(Icons.info)),
|
leading: Icon(Icons.info)),
|
||||||
|
SettingsTile.navigation(
|
||||||
|
title: Text(translate("Build Date")),
|
||||||
|
value: Padding(
|
||||||
|
padding: EdgeInsets.symmetric(vertical: 8),
|
||||||
|
child: Text(_buildDate),
|
||||||
|
),
|
||||||
|
leading: Icon(Icons.query_builder)),
|
||||||
SettingsTile.navigation(
|
SettingsTile.navigation(
|
||||||
onPressed: (context) => onCopyFingerprint(_fingerprint),
|
onPressed: (context) => onCopyFingerprint(_fingerprint),
|
||||||
title: Text(translate("Fingerprint")),
|
title: Text(translate("Fingerprint")),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user