mirror of
https://github.com/immich-app/immich.git
synced 2024-12-21 01:39:59 +02:00
23 lines
579 B
Dart
23 lines
579 B
Dart
|
import 'package:auto_route/auto_route.dart';
|
||
|
import 'package:easy_localization/easy_localization.dart';
|
||
|
import 'package:flutter/material.dart';
|
||
|
import 'package:immich_mobile/modules/settings/views/settings_page.dart';
|
||
|
|
||
|
@RoutePage()
|
||
|
class SettingsSubPage extends StatelessWidget {
|
||
|
const SettingsSubPage(this.section, {super.key});
|
||
|
|
||
|
final SettingSection section;
|
||
|
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return Scaffold(
|
||
|
appBar: AppBar(
|
||
|
centerTitle: false,
|
||
|
title: Text(section.title).tr(),
|
||
|
),
|
||
|
body: section.widget,
|
||
|
);
|
||
|
}
|
||
|
}
|