From ff338d6277822601048d748bac98bc5c4d5795ae Mon Sep 17 00:00:00 2001 From: Joey Boerwinkel Date: Wed, 24 Jul 2024 11:24:31 +0200 Subject: [PATCH] fix: swap constraints with scrollview to remove overflow --- .../lib/src/ui/widgets/template_legend.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/flutter_availability/lib/src/ui/widgets/template_legend.dart b/packages/flutter_availability/lib/src/ui/widgets/template_legend.dart index 589477c..ba946a7 100644 --- a/packages/flutter_availability/lib/src/ui/widgets/template_legend.dart +++ b/packages/flutter_availability/lib/src/ui/widgets/template_legend.dart @@ -80,10 +80,10 @@ class _TemplateLegendState extends State { ); if (_templateDrawerOpen && !templatesLoading) { - body = SingleChildScrollView( - controller: _scrollController, - child: Container( - constraints: const BoxConstraints(maxHeight: 152), + body = Container( + constraints: const BoxConstraints(maxHeight: 152), + child: SingleChildScrollView( + controller: _scrollController, child: Scrollbar( controller: _scrollController, thumbVisibility: true,