2021-12-13 13:39:06 +01:00
|
|
|
import 'package:meincantor/Settings/Pages/appearance_settings.dart';
|
|
|
|
import 'package:meincantor/Settings/Pages/service_settings.dart';
|
2021-11-06 11:01:44 +01:00
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:material_design_icons_flutter/material_design_icons_flutter.dart';
|
|
|
|
|
|
|
|
import 'Pages/dev_settings.dart';
|
|
|
|
import 'Pages/info_settings.dart';
|
|
|
|
import 'Pages/plan_settings.dart';
|
|
|
|
import 'Pages/user_settings.dart';
|
|
|
|
|
|
|
|
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: [
|
|
|
|
ListTile(
|
2021-11-16 19:41:35 +01:00
|
|
|
leading: const Icon(MdiIcons.accountSettingsOutline,
|
|
|
|
color: Colors.cyan),
|
2021-11-06 11:01:44 +01:00
|
|
|
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()),
|
|
|
|
);
|
|
|
|
},
|
|
|
|
),
|
|
|
|
ListTile(
|
2021-11-16 19:41:35 +01:00
|
|
|
leading:
|
|
|
|
const Icon(MdiIcons.timetable, color: Colors.orangeAccent),
|
2021-11-06 11:01:44 +01:00
|
|
|
trailing: const Icon(Icons.arrow_forward_ios, size: 16),
|
|
|
|
title: const Text("Plan"),
|
|
|
|
subtitle: const Text("Kurse/Fächer, Farben & mehr"),
|
|
|
|
onTap: () {
|
|
|
|
Navigator.push(
|
|
|
|
context,
|
|
|
|
MaterialPageRoute(builder: (context) => const PlanSettings()),
|
|
|
|
);
|
|
|
|
},
|
|
|
|
),
|
|
|
|
ListTile(
|
2021-11-16 19:41:35 +01:00
|
|
|
leading: const Icon(Icons.color_lens_outlined,
|
|
|
|
color: Colors.pinkAccent),
|
2021-11-06 11:01:44 +01:00
|
|
|
trailing: const Icon(Icons.arrow_forward_ios, size: 16),
|
|
|
|
title: const Text("Aussehen"),
|
|
|
|
subtitle: const Text("Widgets, Design & mehr"),
|
|
|
|
onTap: () {
|
|
|
|
Navigator.push(
|
|
|
|
context,
|
2021-11-16 19:41:35 +01:00
|
|
|
MaterialPageRoute(
|
|
|
|
builder: (context) => const AppearanceSettings()),
|
2021-11-06 11:01:44 +01:00
|
|
|
);
|
|
|
|
},
|
|
|
|
),
|
|
|
|
ListTile(
|
|
|
|
leading: const Icon(MdiIcons.server, color: Colors.lightGreen),
|
|
|
|
trailing: const Icon(Icons.arrow_forward_ios, size: 16),
|
|
|
|
title: const Text("Dienste"),
|
|
|
|
subtitle: const Text("Konten, Plattformen & mehr"),
|
|
|
|
onTap: () {
|
|
|
|
Navigator.push(
|
|
|
|
context,
|
2021-11-16 19:41:35 +01:00
|
|
|
MaterialPageRoute(
|
|
|
|
builder: (context) => const ServiceSettings()),
|
2021-11-06 11:01:44 +01:00
|
|
|
);
|
|
|
|
},
|
|
|
|
),
|
|
|
|
ListTile(
|
2021-11-16 19:41:35 +01:00
|
|
|
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
|
|
|
),
|
|
|
|
ListTile(
|
2021-11-16 19:41:35 +01:00
|
|
|
leading:
|
|
|
|
const Icon(Icons.info_outlined, color: Colors.greenAccent),
|
2021-11-06 11:01:44 +01:00
|
|
|
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-16 19:41:35 +01:00
|
|
|
}
|