darioielardi / flutter_speed_dial

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

Widgets under the overlay are focusable #257

Open pourqavam opened 2 years ago

pourqavam commented 2 years ago

Hi If we use the overlay (renderOverlay: true), the underlying widgets are still focusable for example by pressing Tab on desktop platform.

sdfbug2

The

FocusScope.of(context).canRequestFocus = false; // true
FocusScope.of(context).descendantsAreFocusable = false; // true

in the _SpeedDialState.toggleOverlay method can help but I'm not sure if it's the best and bug-free way.