mirror of
https://github.com/immich-app/immich.git
synced 2025-01-21 00:52:43 -05:00
add license page
This commit is contained in:
parent
d438e333d5
commit
947a70d48c
3 changed files with 22 additions and 3 deletions
|
@ -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": {
|
||||
|
|
|
@ -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)),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
5
mobile-v2/makefile
Normal file
5
mobile-v2/makefile
Normal file
|
@ -0,0 +1,5 @@
|
|||
.PHONY: build
|
||||
|
||||
build:
|
||||
dart run pigeon --input lib/platform/messages.dart
|
||||
dart run build_runner build --delete-conflicting-outputs
|
Loading…
Add table
Reference in a new issue