fix: replace Divider() with Container() to prevent flickering

When the left_menu slides in from the left, the entire app window flickers and stutters.

The two `const Divider(),` references are the cause of this stuttering, so they have been replaced with `Container()`.
This commit is contained in:
Martin Wimpress 2024-06-28 16:31:59 +01:00 committed by Martin Wimpress
parent 029e098f4f
commit def50f53be
1 changed files with 6 additions and 2 deletions

View File

@ -52,7 +52,9 @@ class _LeftMenuState extends State<LeftMenu> with PreferencesMixin {
title: Text("Quickgui $_version", title: Text("Quickgui $_version",
style: const TextStyle(fontSize: 24.0, fontWeight: FontWeight.bold)), style: const TextStyle(fontSize: 24.0, fontWeight: FontWeight.bold)),
), ),
const Divider(), Container(
height: 4.0,
),
Padding( Padding(
padding: const EdgeInsets.symmetric(horizontal: 16), padding: const EdgeInsets.symmetric(horizontal: 16),
child: Row( child: Row(
@ -86,7 +88,9 @@ class _LeftMenuState extends State<LeftMenu> with PreferencesMixin {
], ],
), ),
), ),
const Divider(), Container(
height: 4.0,
),
Padding( Padding(
padding: const EdgeInsets.symmetric(horizontal: 16), padding: const EdgeInsets.symmetric(horizontal: 16),
child: Row( child: Row(