YYFlutter/flutter-custom-dialog

The method 'findRootAncestorStateOfType' was called on null. Receiver: null Tried calling: findRootAncestorStateOfType<NavigatorState>()

fabioselau077 opened this issue · 1 comments

onTap in GestureDetector return this error:
The method 'findRootAncestorStateOfType' was called on null.
Receiver: null
Tried calling: findRootAncestorStateOfType()

How to resolve? I'm using example code YYAlertDialogWithGravity.

I forget "YYDialog.init(context);".
Thanks for package, amazing work.