fix: The modal should overlay the Scaffold as well

This commit is contained in:
PapaTutuWawa 2023-07-16 17:43:16 +02:00
parent f081bd7c43
commit a01e8602e5

View File

@ -82,7 +82,6 @@ class CalendarPageState extends State<CalendarPage> {
SliverToBoxAdapter(
child: Padding(
padding: const EdgeInsets.only(
left: 0,
right: 16,
top: 20,
bottom: 4,
@ -168,27 +167,31 @@ class CalendarPageState extends State<CalendarPage> {
setState(() {});
}
},
child: Scaffold(
appBar: AppBar(
title: Text(t.calendar.calendar),
actions: [
IconButton(
onPressed: () {
context.read<CalendarBloc>().add(RefreshPerformedEvent());
},
icon: const Icon(Icons.refresh),
),
],
),
drawer: getDrawer(context),
body: Stack(
child: WillPopScope(
onWillPop: () async => !context.read<CalendarBloc>().state.refreshing,
child: Stack(
children: [
Positioned(
left: 8,
right: 8,
top: 0,
bottom: 0,
child: CustomScrollView(
child: Scaffold(
appBar: AppBar(
title: Text(t.calendar.calendar),
actions: [
IconButton(
onPressed: () {
context
.read<CalendarBloc>()
.add(RefreshPerformedEvent());
},
icon: const Icon(Icons.refresh),
),
],
),
drawer: getDrawer(context),
body: CustomScrollView(
slivers: [
// Render all available weekdays
..._renderWeekdayList(
@ -242,6 +245,7 @@ class CalendarPageState extends State<CalendarPage> {
],
),
),
),
Positioned(
left: 0,
right: 0,