fix: swap constraints with scrollview to remove overflow

This commit is contained in:
Joey Boerwinkel 2024-07-24 11:24:31 +02:00 committed by FlutterJoey
parent 370f431784
commit ff338d6277

View file

@ -80,10 +80,10 @@ class _TemplateLegendState extends State<TemplateLegend> {
); );
if (_templateDrawerOpen && !templatesLoading) { if (_templateDrawerOpen && !templatesLoading) {
body = SingleChildScrollView( body = Container(
controller: _scrollController, constraints: const BoxConstraints(maxHeight: 152),
child: Container( child: SingleChildScrollView(
constraints: const BoxConstraints(maxHeight: 152), controller: _scrollController,
child: Scrollbar( child: Scrollbar(
controller: _scrollController, controller: _scrollController,
thumbVisibility: true, thumbVisibility: true,