From 0f8f1e826773a1bd85cdef33ff291ded99e0cf91 Mon Sep 17 00:00:00 2001 From: Okpongu Tamarautukpamobowei <47600557+silentl007@users.noreply.github.com> Date: Sat, 9 Dec 2023 23:32:24 +0100 Subject: [PATCH] on tap of an option removes the options list --- lib/speed_dial_fab.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/speed_dial_fab.dart b/lib/speed_dial_fab.dart index 3a60612..56afdf1 100644 --- a/lib/speed_dial_fab.dart +++ b/lib/speed_dial_fab.dart @@ -140,8 +140,10 @@ class SpeedDialFabWidgetState extends State widget.secondaryIconsList[index], color: widget.secondaryForegroundColor, ), - onPressed: - widget.secondaryIconsOnPress[index] as void Function(), + onPressed: () { + widget.secondaryIconsOnPress[index](); + _controller.reverse(); + }, ), Positioned( right: 51.0,