diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index 6ff2dc6..4ead0dc 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -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" + } + } } } \ No newline at end of file diff --git a/lib/settings/about.dart b/lib/settings/about.dart index 8bc3d35..78ec58c 100644 --- a/lib/settings/about.dart +++ b/lib/settings/about.dart @@ -84,6 +84,11 @@ class _ScreenSettingsAboutState extends State { 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 { mode: LaunchMode.inAppBrowserView, Uri.parse( repoUrl.substring(0, repoUrl.lastIndexOf('/')))); - }), + }) ]), ), const SizedBox(height: 16)