diff options
author | Scott Murray <scott.murray@konsulko.com> | 2023-01-01 16:18:44 -0500 |
---|---|---|
committer | Scott Murray <scott.murray@konsulko.com> | 2023-01-01 21:23:37 +0000 |
commit | 5ce59ba69f1451ec18c565b7b18301856553f574 (patch) | |
tree | 01b96480ab5aa705138d360fcc0c4552c2cb4ba4 /lib/bottom_panel.dart | |
parent | 3caff566e591975f06dda06fb63023258c89a46e (diff) |
Changes:
- The volume control was raising at unexpected times, after some
investigation it seems the GestureDetector onTap definition was
done incorrectly, fix it.
- Tweaked the date & time display sizing to more close match the
Qt demo and improve visuals.
Bug-AGL: SPEC-4615
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: Id484a10c9adc71b65bfcf515919958dc9e84e444
Diffstat (limited to 'lib/bottom_panel.dart')
-rw-r--r-- | lib/bottom_panel.dart | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/bottom_panel.dart b/lib/bottom_panel.dart index f61c59d..16d3a4e 100644 --- a/lib/bottom_panel.dart +++ b/lib/bottom_panel.dart @@ -36,6 +36,11 @@ class _BottomPanelWidgetState extends ConsumerState<BottomPanelWidget> { Widget build(BuildContext context) { final int index = ref.watch(StackIndexProvider); + void handleLogoTap() { + ref.read(StackIndexProvider.notifier).state = 1; + timer.reset(); + } + return SizedBox( height: widget.height, child: IndexedStack(index: index, children: <Widget>[ @@ -47,10 +52,7 @@ class _BottomPanelWidgetState extends ConsumerState<BottomPanelWidget> { child: ScalableImageWidget.fromSISource( si: ScalableImageSource.fromSvg( rootBundle, 'images/Utility_Logo_Grey-01.svg')))), - onTap: () { - ref.read(StackIndexProvider.notifier).state = 1; - timer.reset(); - }, + onTap: () => handleLogoTap(), ), Container( color: widget.color, |