Waaaay big enchancements

This commit is contained in:
Artem Kokos
2026-04-02 23:51:28 +07:00
parent 6221fbcc71
commit 5e09f41747
14 changed files with 1308 additions and 111 deletions

View File

@@ -78,7 +78,7 @@ class _SchedulesScreenState extends ConsumerState<SchedulesScreen> {
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.vertical(top: Radius.circular(20)),
),
builder: (ctx) => _AddScheduleSheet(),
builder: (ctx) => const _AddScheduleSheet(),
);
}
}
@@ -163,6 +163,8 @@ class _TaskCard extends ConsumerWidget {
/// Нижний лист для создания расписания
class _AddScheduleSheet extends ConsumerStatefulWidget {
const _AddScheduleSheet();
@override
ConsumerState<_AddScheduleSheet> createState() => _AddScheduleSheetState();
}
@@ -194,13 +196,15 @@ class _AddScheduleSheetState extends ConsumerState<_AddScheduleSheet> {
@override
Widget build(BuildContext context) {
final groups = ref.watch(groupsProvider);
final bottomPadding = MediaQuery.of(context).viewInsets.bottom;
final systemPadding = MediaQuery.of(context).padding.bottom;
return Padding(
padding: EdgeInsets.only(
left: 20,
right: 20,
top: 20,
bottom: MediaQuery.of(context).viewInsets.bottom + 20,
bottom: bottomPadding + systemPadding + 20,
),
child: SingleChildScrollView(
child: Column(