diff --git a/mobile-v2/assets/i18n/strings.i18n.json b/mobile-v2/assets/i18n/strings.i18n.json index 63ac6f2583..7f61322bf1 100644 --- a/mobile-v2/assets/i18n/strings.i18n.json +++ b/mobile-v2/assets/i18n/strings.i18n.json @@ -10,6 +10,10 @@ "about": "About", "general": "General", "advance": "Advance" + }, + "about": { + "third_party_title": "Third Party Notices", + "third_party_sub_title": "Notice and license for third party libraries" } }, "login": { diff --git a/mobile-v2/lib/presentation/modules/settings/pages/about_settings.page.dart b/mobile-v2/lib/presentation/modules/settings/pages/about_settings.page.dart index be71894c4c..740a8838e7 100644 --- a/mobile-v2/lib/presentation/modules/settings/pages/about_settings.page.dart +++ b/mobile-v2/lib/presentation/modules/settings/pages/about_settings.page.dart @@ -1,6 +1,9 @@ import 'package:auto_route/auto_route.dart'; import 'package:flutter/material.dart'; +import 'package:immich_mobile/i18n/strings.g.dart'; +import 'package:immich_mobile/presentation/components/image/immich_logo.widget.dart'; import 'package:immich_mobile/presentation/components/scaffold/adaptive_route_appbar.widget.dart'; +import 'package:immich_mobile/utils/constants/size_constants.dart'; @RoutePage() class AboutSettingsPage extends StatelessWidget { @@ -8,9 +11,16 @@ class AboutSettingsPage extends StatelessWidget { @override Widget build(BuildContext context) { - return const Scaffold( - appBar: ImAdaptiveRouteSecondaryAppBar(), - body: Center(child: Text('About Settings')), + return Scaffold( + appBar: const ImAdaptiveRouteSecondaryAppBar(), + body: ListTile( + title: Text(context.t.settings.about.third_party_title), + subtitle: Text(context.t.settings.about.third_party_sub_title), + onTap: () => showLicensePage( + context: context, + applicationName: "Immich", + applicationIcon: const ImLogo(width: SizeConstants.xl)), + ), ); } } diff --git a/mobile-v2/makefile b/mobile-v2/makefile new file mode 100644 index 0000000000..71f1b22a19 --- /dev/null +++ b/mobile-v2/makefile @@ -0,0 +1,5 @@ +.PHONY: build + +build: + dart run pigeon --input lib/platform/messages.dart + dart run build_runner build --delete-conflicting-outputs