awesomeDialogs icon indicating copy to clipboard operation
awesomeDialogs copied to clipboard

Null check operator used on a null value

Open Aljnk opened this issue 2 years ago • 4 comments

awesome_dialog 3.0.2 This problem appears only main page:

1

2

Aljnk avatar Jan 14 '23 14:01 Aljnk

This hook give the same result: 3 4

Aljnk avatar Jan 14 '23 15:01 Aljnk

Sorry, I found error - two times call Navigator.pop(context);

Aljnk avatar Jan 14 '23 15:01 Aljnk

Error in the package or in your app code? I'm running into this error as well.

DigitalSolomon avatar May 23 '23 18:05 DigitalSolomon

Yes, it's an error on the unmounted dialog context... I fixed it by manually dismissing the dialog, keeping the navigator instance cached before the dialog being showed like:

final router = Navigator.of(context, rootNavigator: useRootNavigator);

AwesomeDialog(...).show();

then you can use the cached router to call pop() on the dismissCallback or something...

Domenic-MZS avatar Aug 07 '23 22:08 Domenic-MZS