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",
|
"about": "About",
|
||||||
"general": "General",
|
"general": "General",
|
||||||
"advance": "Advance"
|
"advance": "Advance"
|
||||||
|
},
|
||||||
|
"about": {
|
||||||
|
"third_party_title": "Third Party Notices",
|
||||||
|
"third_party_sub_title": "Notice and license for third party libraries"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"login": {
|
"login": {
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
import 'package:auto_route/auto_route.dart';
|
import 'package:auto_route/auto_route.dart';
|
||||||
import 'package:flutter/material.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/presentation/components/scaffold/adaptive_route_appbar.widget.dart';
|
||||||
|
import 'package:immich_mobile/utils/constants/size_constants.dart';
|
||||||
|
|
||||||
@RoutePage()
|
@RoutePage()
|
||||||
class AboutSettingsPage extends StatelessWidget {
|
class AboutSettingsPage extends StatelessWidget {
|
||||||
|
@ -8,9 +11,16 @@ class AboutSettingsPage extends StatelessWidget {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return const Scaffold(
|
return Scaffold(
|
||||||
appBar: ImAdaptiveRouteSecondaryAppBar(),
|
appBar: const ImAdaptiveRouteSecondaryAppBar(),
|
||||||
body: Center(child: Text('About Settings')),
|
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