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:
parent
029e098f4f
commit
def50f53be
|
|
@ -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(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue