Waaaay big enchancements
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user