Added version number in settings
This commit is contained in:
parent
42fa6b065a
commit
2e1f8c1935
|
@ -422,5 +422,16 @@
|
|||
"@settingsMainDeveloper": {
|
||||
"description": "Text displayed as description for main developer button",
|
||||
"context": "Visible in the settings view"
|
||||
},
|
||||
"settingsVersion": "Ollama App v{version}",
|
||||
"@settingsVersion": {
|
||||
"description": "Text displayed as description for version",
|
||||
"context": "Visible in the settings view",
|
||||
"placeholders": {
|
||||
"version": {
|
||||
"type": "String",
|
||||
"description": "Version number of the app"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -84,6 +84,11 @@ class _ScreenSettingsAboutState extends State<ScreenSettingsAbout> {
|
|||
Expanded(
|
||||
child: ListView(children: [
|
||||
// const SizedBox(height: 16),
|
||||
button(
|
||||
AppLocalizations.of(context)!
|
||||
.settingsVersion(currentVersion ?? "0.0.1"),
|
||||
Icons.verified_rounded,
|
||||
null),
|
||||
(updateStatus == "notAvailable")
|
||||
? const SizedBox.shrink()
|
||||
: button(
|
||||
|
@ -160,7 +165,7 @@ class _ScreenSettingsAboutState extends State<ScreenSettingsAbout> {
|
|||
mode: LaunchMode.inAppBrowserView,
|
||||
Uri.parse(
|
||||
repoUrl.substring(0, repoUrl.lastIndexOf('/'))));
|
||||
}),
|
||||
})
|
||||
]),
|
||||
),
|
||||
const SizedBox(height: 16)
|
||||
|
|
Loading…
Reference in New Issue