darioielardi / flutter_speed_dial

Flutter plugin to implement a Material Design Speed Dial
https://pub.dev/packages/flutter_speed_dial
MIT License
410 stars 177 forks source link

Can't do anything on next widget if the renderOverlay is set to true #290

Open johny2345 opened 1 year ago

johny2345 commented 1 year ago

HI, thanks for the package.

As the title suggest, the screen is no longer clickable or can't do anything with it. It looks like the overlay is hindering me from doing anything if I used the packaged on navigating to the next screen. The renderoverlay dispose seems no longer working when used on navigation.

onTap: () {
    Navigator.of(context).pushNamed(Routes.NEXT_PAGE);
},
jonaspoxleitner commented 1 year ago

It works for me with flutter_speed_dial 6.1.0 and flutter 3.7.6.

johny2345 commented 1 year ago

Thanks for trying it on your end. I actually updated my flutter version and set the flutter_speed_dial 6.1.0 still getting the same issue. Here's the sample code I have here:

` This is the code: SpeedDial(

                elevation: 0,
                animationDuration: const Duration(milliseconds: 400),
                renderOverlay: true, <-- The issue occurs when I set this to true
                curve: Curves.easeInOutCubicEmphasized,
                icon: Icons.bike_scooter_rounded,
                children: [
                  SpeedDialChild(
                    child: const Icon(
                      Icons.directions,
                      color: AppColors.white,
                    ),
                    onTap: () {
                      Navigator.of(context).pushNamed(Routes.NEXT_PAGE);
                    },
                    backgroundColor: AppColors.primaryColor,
                    label: 'Special',
                  )})

`

Flutter 3.7.7 • channel stable • https://github.com/flutter/flutter.git Framework • revision 2ad6cd72c0 • 2023-03-08 09:41:59 -0800 Engine • revision 1837b5be5f Tools • Dart 2.19.4 • DevTools 2.20.1

PS: I'm getting this issue on IOS. <--------------------------------------------------------------

milkyway044 commented 1 year ago

+1