38 lines
1.1 KiB
Dart
38 lines
1.1 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_bloc/flutter_bloc.dart';
|
|
|
|
import '../../../state/app/modules/settings/bloc/settings_cubit.dart';
|
|
import '../../../storage/settings.dart' as model;
|
|
import 'sections/about_section.dart';
|
|
import 'sections/account_section.dart';
|
|
import 'sections/appearance_section.dart';
|
|
import 'sections/files_section.dart';
|
|
import 'sections/talk_section.dart';
|
|
import 'sections/timetable_section.dart';
|
|
|
|
class Settings extends StatelessWidget {
|
|
const Settings({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) => BlocBuilder<SettingsCubit, model.Settings>(
|
|
builder: (context, _) => Scaffold(
|
|
appBar: AppBar(title: const Text('Einstellungen')),
|
|
body: ListView(
|
|
children: const [
|
|
AccountSection(),
|
|
Divider(),
|
|
AppearanceSection(),
|
|
Divider(),
|
|
TimetableSection(),
|
|
Divider(),
|
|
TalkSection(),
|
|
Divider(),
|
|
FilesSection(),
|
|
Divider(),
|
|
AboutSection(),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|