Added license page
This commit is contained in:
parent
27d45add60
commit
9b6259a580
|
@ -660,9 +660,9 @@
|
||||||
"description": "Text displayed as description for report issue button",
|
"description": "Text displayed as description for report issue button",
|
||||||
"context": "Visible in the settings view"
|
"context": "Visible in the settings view"
|
||||||
},
|
},
|
||||||
"settingsMainDeveloper": "Main Developer",
|
"settingsLicenses": " Licenses",
|
||||||
"@settingsMainDeveloper": {
|
"@settingsLicenses": {
|
||||||
"description": "Text displayed as description for main developer button",
|
"description": "Text displayed as description for licenses button",
|
||||||
"context": "Visible in the settings view"
|
"context": "Visible in the settings view"
|
||||||
},
|
},
|
||||||
"settingsVersion": "Ollama App v{version}",
|
"settingsVersion": "Ollama App v{version}",
|
||||||
|
|
|
@ -123,13 +123,37 @@ class _ScreenSettingsAboutState extends State<ScreenSettingsAbout> {
|
||||||
mode: LaunchMode.inAppBrowserView,
|
mode: LaunchMode.inAppBrowserView,
|
||||||
Uri.parse("$repoUrl/issues"));
|
Uri.parse("$repoUrl/issues"));
|
||||||
}),
|
}),
|
||||||
button(AppLocalizations.of(context)!.settingsMainDeveloper,
|
button(AppLocalizations.of(context)!.settingsLicenses,
|
||||||
Icons.developer_board_rounded, () {
|
Icons.gavel_rounded, () {
|
||||||
selectionHaptic();
|
selectionHaptic();
|
||||||
launchUrl(
|
String legal = "Copyright 2024 JHubi1";
|
||||||
mode: LaunchMode.inAppBrowserView,
|
Widget icon = const Padding(
|
||||||
Uri.parse(
|
padding: EdgeInsets.all(16),
|
||||||
repoUrl.substring(0, repoUrl.lastIndexOf('/'))));
|
child: ImageIcon(AssetImage("assets/logo512.png"),
|
||||||
|
size: 48),
|
||||||
|
);
|
||||||
|
if (desktopFeature()) {
|
||||||
|
showDialog(
|
||||||
|
context: context,
|
||||||
|
builder: (context) {
|
||||||
|
return Dialog(
|
||||||
|
child: ClipRRect(
|
||||||
|
borderRadius: BorderRadius.circular(28),
|
||||||
|
child: LicensePage(
|
||||||
|
applicationName: "Ollama App",
|
||||||
|
applicationVersion: currentVersion,
|
||||||
|
applicationIcon: icon,
|
||||||
|
applicationLegalese: legal),
|
||||||
|
));
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
showLicensePage(
|
||||||
|
context: context,
|
||||||
|
applicationName: "Ollama App",
|
||||||
|
applicationVersion: currentVersion,
|
||||||
|
applicationIcon: icon,
|
||||||
|
applicationLegalese: legal);
|
||||||
|
}
|
||||||
}),
|
}),
|
||||||
const SizedBox(height: 16)
|
const SizedBox(height: 16)
|
||||||
]),
|
]),
|
||||||
|
|
|
@ -16,7 +16,8 @@
|
||||||
"settingsTemporaryFixesNoFixes",
|
"settingsTemporaryFixesNoFixes",
|
||||||
"settingsVoiceTtsNotSupported",
|
"settingsVoiceTtsNotSupported",
|
||||||
"settingsVoiceTtsNotSupportedDescription",
|
"settingsVoiceTtsNotSupportedDescription",
|
||||||
"settingsVoiceNotEnabled"
|
"settingsVoiceNotEnabled",
|
||||||
|
"settingsLicenses"
|
||||||
],
|
],
|
||||||
|
|
||||||
"it": [
|
"it": [
|
||||||
|
@ -36,7 +37,8 @@
|
||||||
"settingsTemporaryFixesNoFixes",
|
"settingsTemporaryFixesNoFixes",
|
||||||
"settingsVoiceTtsNotSupported",
|
"settingsVoiceTtsNotSupported",
|
||||||
"settingsVoiceTtsNotSupportedDescription",
|
"settingsVoiceTtsNotSupportedDescription",
|
||||||
"settingsVoiceNotEnabled"
|
"settingsVoiceNotEnabled",
|
||||||
|
"settingsLicenses"
|
||||||
],
|
],
|
||||||
|
|
||||||
"tr": [
|
"tr": [
|
||||||
|
@ -56,7 +58,8 @@
|
||||||
"settingsTemporaryFixesNoFixes",
|
"settingsTemporaryFixesNoFixes",
|
||||||
"settingsVoiceTtsNotSupported",
|
"settingsVoiceTtsNotSupported",
|
||||||
"settingsVoiceTtsNotSupportedDescription",
|
"settingsVoiceTtsNotSupportedDescription",
|
||||||
"settingsVoiceNotEnabled"
|
"settingsVoiceNotEnabled",
|
||||||
|
"settingsLicenses"
|
||||||
],
|
],
|
||||||
|
|
||||||
"zh": [
|
"zh": [
|
||||||
|
@ -76,6 +79,7 @@
|
||||||
"settingsTemporaryFixesNoFixes",
|
"settingsTemporaryFixesNoFixes",
|
||||||
"settingsVoiceTtsNotSupported",
|
"settingsVoiceTtsNotSupported",
|
||||||
"settingsVoiceTtsNotSupportedDescription",
|
"settingsVoiceTtsNotSupportedDescription",
|
||||||
"settingsVoiceNotEnabled"
|
"settingsVoiceNotEnabled",
|
||||||
|
"settingsLicenses"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue