2022-01-16 15:28:42 +01:00
|
|
|
// GCG.MeinCantor - Die Schulplattform für Cantorianer.
|
|
|
|
// Copyright (C) 2021-2022 Georg-Cantor-Gymnasium Halle (Saale)
|
|
|
|
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU Affero General Public License as published
|
|
|
|
// by the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU Affero General Public License for more details.
|
|
|
|
|
|
|
|
// You should have received a copy of the GNU Affero General Public License
|
|
|
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
2021-11-06 11:01:44 +01:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:material_design_icons_flutter/material_design_icons_flutter.dart';
|
|
|
|
|
2021-12-19 22:20:56 +01:00
|
|
|
import 'package:meincantor/Settings/Pages/dev_settings.dart';
|
|
|
|
import 'package:meincantor/Settings/Pages/info_settings.dart';
|
|
|
|
import 'package:meincantor/Settings/Pages/plan_settings.dart';
|
|
|
|
import 'package:meincantor/Settings/Pages/user_settings.dart';
|
2021-11-06 11:01:44 +01:00
|
|
|
|
|
|
|
class Settings extends StatelessWidget {
|
|
|
|
const Settings({Key? key}) : super(key: key);
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Scaffold(
|
|
|
|
appBar: AppBar(
|
|
|
|
title: const Text("Einstellungen"),
|
|
|
|
centerTitle: true,
|
|
|
|
),
|
|
|
|
body: ListView(
|
|
|
|
padding: const EdgeInsets.fromLTRB(5, 5, 5, 5),
|
|
|
|
children: [
|
2021-12-19 22:20:56 +01:00
|
|
|
Padding(
|
|
|
|
padding: const EdgeInsets.all(5),
|
|
|
|
child: ListTile(
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
borderRadius: BorderRadius.circular(15.0)),
|
|
|
|
leading: const Icon(MdiIcons.accountSettingsOutline,
|
|
|
|
color: Colors.cyan),
|
|
|
|
trailing: const Icon(Icons.arrow_forward_ios, size: 16),
|
|
|
|
title: const Text("Benutzer"),
|
|
|
|
subtitle: const Text("Profilbild, Klasse & mehr"),
|
|
|
|
onTap: () {
|
|
|
|
Navigator.push(
|
|
|
|
context,
|
|
|
|
MaterialPageRoute(
|
|
|
|
builder: (context) => const UserSettings()),
|
|
|
|
);
|
|
|
|
},
|
|
|
|
),
|
2021-11-06 11:01:44 +01:00
|
|
|
),
|
2021-12-19 22:20:56 +01:00
|
|
|
Padding(
|
|
|
|
padding: const EdgeInsets.all(5),
|
|
|
|
child: ListTile(
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
borderRadius: BorderRadius.circular(15.0)),
|
|
|
|
leading: const Icon(Icons.list_alt_outlined, color: Colors.red),
|
|
|
|
trailing: const Icon(Icons.arrow_forward_ios, size: 16),
|
|
|
|
title: const Text("Kurse"),
|
|
|
|
subtitle: const Text("Konfiguration der Kurse"),
|
|
|
|
onTap: () {
|
|
|
|
Navigator.push(
|
|
|
|
context,
|
|
|
|
MaterialPageRoute(
|
|
|
|
builder: (context) => const WhitelistSettings()),
|
|
|
|
);
|
|
|
|
},
|
|
|
|
),
|
2021-11-06 11:01:44 +01:00
|
|
|
),
|
2021-12-19 22:20:56 +01:00
|
|
|
Padding(
|
|
|
|
padding: const EdgeInsets.all(5),
|
|
|
|
child: ListTile(
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
borderRadius: BorderRadius.circular(15.0)),
|
|
|
|
leading:
|
|
|
|
const Icon(Icons.color_lens_outlined, color: Colors.teal),
|
|
|
|
trailing: const Icon(Icons.arrow_forward_ios, size: 16),
|
|
|
|
title: const Text("Farben"),
|
|
|
|
subtitle:
|
|
|
|
const Text("Konfiguration der Farben für die Plankacheln"),
|
|
|
|
onTap: () {
|
|
|
|
Navigator.push(
|
|
|
|
context,
|
|
|
|
MaterialPageRoute(
|
|
|
|
builder: (context) => const PlanColorSettings()),
|
|
|
|
);
|
|
|
|
},
|
|
|
|
),
|
2021-11-06 11:01:44 +01:00
|
|
|
),
|
2021-12-19 22:20:56 +01:00
|
|
|
Padding(
|
|
|
|
padding: const EdgeInsets.all(5),
|
|
|
|
child: ListTile(
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
borderRadius: BorderRadius.circular(15.0)),
|
|
|
|
leading: const Icon(Icons.developer_mode_outlined,
|
|
|
|
color: Colors.deepOrangeAccent),
|
|
|
|
trailing: const Icon(Icons.arrow_forward_ios, size: 16),
|
|
|
|
title: const Text("Entwickleroptionen"),
|
|
|
|
subtitle: const Text("API, Benutzerdaten & mehr"),
|
|
|
|
onTap: () {
|
|
|
|
Navigator.push(
|
|
|
|
context,
|
|
|
|
MaterialPageRoute(
|
|
|
|
builder: (context) => const DevSettings()),
|
|
|
|
);
|
|
|
|
},
|
|
|
|
),
|
2021-11-06 11:01:44 +01:00
|
|
|
),
|
2021-12-19 22:20:56 +01:00
|
|
|
Padding(
|
|
|
|
padding: const EdgeInsets.all(5),
|
|
|
|
child: ListTile(
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
borderRadius: BorderRadius.circular(15.0)),
|
|
|
|
leading:
|
|
|
|
const Icon(Icons.info_outlined, color: Colors.greenAccent),
|
|
|
|
trailing: const Icon(Icons.arrow_forward_ios, size: 16),
|
|
|
|
title: const Text("Informationen"),
|
|
|
|
subtitle: const Text("Version, Lizenzen & mehr"),
|
|
|
|
onTap: () {
|
|
|
|
Navigator.push(
|
|
|
|
context,
|
|
|
|
MaterialPageRoute(
|
|
|
|
builder: (context) => const InfoSettings()),
|
|
|
|
);
|
|
|
|
},
|
|
|
|
),
|
2021-11-06 11:01:44 +01:00
|
|
|
),
|
|
|
|
],
|
|
|
|
));
|
|
|
|
}
|
2021-11-16 19:41:35 +01:00
|
|
|
}
|