From def50f53be06a56b2fd40c35bebe5be7f7c99bff Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Fri, 28 Jun 2024 16:31:59 +0100 Subject: [PATCH] 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()`. --- lib/src/widgets/left_menu.dart | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/src/widgets/left_menu.dart b/lib/src/widgets/left_menu.dart index b1e979c..5fa818b 100644 --- a/lib/src/widgets/left_menu.dart +++ b/lib/src/widgets/left_menu.dart @@ -52,7 +52,9 @@ class _LeftMenuState extends State with PreferencesMixin { title: Text("Quickgui $_version", style: const TextStyle(fontSize: 24.0, fontWeight: FontWeight.bold)), ), - const Divider(), + Container( + height: 4.0, + ), Padding( padding: const EdgeInsets.symmetric(horizontal: 16), child: Row( @@ -86,7 +88,9 @@ class _LeftMenuState extends State with PreferencesMixin { ], ), ), - const Divider(), + Container( + height: 4.0, + ), Padding( padding: const EdgeInsets.symmetric(horizontal: 16), child: Row(