flutter_speed_dial icon indicating copy to clipboard operation
flutter_speed_dial copied to clipboard

Overlay stays on top after SpeedDialChild.onTap push Navigator

Open levydanqc opened this issue 2 years ago • 7 comments

If the click on a SpeedDialChild is used to Navigate to another view, with

onTap: () => Navigator.push(
  context,
  MaterialPageRoute(
      builder: (context) =>
          const AnotherView()),
),

the BackgroundOverlay stays on and the view is unclickable.

levydanqc avatar Jun 22 '22 20:06 levydanqc

I made some tests and if I add a debugPrint('Open') and debugPrint('Close') on the onOpen and onClose of SpeedDial:

  1. Click on the SpeedDialChild to navigate to a new page
  2. 'Close' is printed
  3. The new view appear
  4. 'Open' is printed 2 times
  5. 'Open' is then printed each time I click anywhere

levydanqc avatar Jun 22 '22 20:06 levydanqc

@luca-colazzo Please let me know if you know how to fix this

levydanqc avatar Jun 22 '22 20:06 levydanqc

I am having the same issue, background overlay remains after using Navigator.pushNamed from within SpeedDialChild.

DanielKirkwood avatar Jun 25 '22 09:06 DanielKirkwood

Will investigate next week

luca-colazzo avatar Jun 25 '22 09:06 luca-colazzo

+1

hatemragab avatar Jul 22 '22 16:07 hatemragab

+1, Same issue, The overlay still remains after page change with Get.to.

ppanuwatpr avatar Aug 11 '22 00:08 ppanuwatpr

+1, Also have the same issue. I set renderOverlay: false for now until it gets fixed.

DzonaTheSymbol avatar Aug 16 '22 13:08 DzonaTheSymbol

image https://github.com/darioielardi/flutter_speed_dial#how-to-use-openclosedial-property set propertyopenCloseDial onOpen onClose fix this issuse

passerby-yyds avatar Aug 30 '22 05:08 passerby-yyds

This didn't do it for me. Still rendering overlay when navigating to a new screen.

DzonaTheSymbol avatar Aug 30 '22 09:08 DzonaTheSymbol

Set property renderOverlay to false solved my problem.

krmuller avatar Jan 12 '23 22:01 krmuller