aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bottom_panel.dart
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bottom_panel.dart')
-rw-r--r--lib/bottom_panel.dart10
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,