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,