100 lines
3.8 KiB
Dart
100 lines
3.8 KiB
Dart
|
import 'package:MeinCantor/Settings/Pages/appearance_settings.dart';
|
||
|
import 'package:MeinCantor/Settings/Pages/service_settings.dart';
|
||
|
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(
|
||
|
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()),
|
||
|
);
|
||
|
},
|
||
|
),
|
||
|
ListTile(
|
||
|
leading: const Icon(MdiIcons.timetable, color: Colors.orangeAccent),
|
||
|
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(
|
||
|
leading: const Icon(Icons.color_lens_outlined, color: Colors.pinkAccent),
|
||
|
trailing: const Icon(Icons.arrow_forward_ios, size: 16),
|
||
|
title: const Text("Aussehen"),
|
||
|
subtitle: const Text("Widgets, Design & mehr"),
|
||
|
onTap: () {
|
||
|
Navigator.push(
|
||
|
context,
|
||
|
MaterialPageRoute(builder: (context) => const AppearanceSettings()),
|
||
|
);
|
||
|
},
|
||
|
),
|
||
|
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,
|
||
|
MaterialPageRoute(builder: (context) => const ServiceSettings()),
|
||
|
);
|
||
|
},
|
||
|
),
|
||
|
ListTile(
|
||
|
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()),
|
||
|
);
|
||
|
},
|
||
|
),
|
||
|
ListTile(
|
||
|
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()),
|
||
|
);
|
||
|
},
|
||
|
),
|
||
|
],
|
||
|
));
|
||
|
}
|
||
|
}
|