marcos930807 / awesomeDialogs

A new Flutter package project for simple a awesome dialogs
Other
339 stars 110 forks source link

NoSuchMethodError: The method 'pop' was called on null. Receiver: null #40

Closed Lima21 closed 3 years ago

Lima21 commented 3 years ago

Hi, thank you for the amazing package :) I'm getting this error in a lot of users, but I cannot replicate it on my phone. Do you know what it can be? Non-fatal Exception: java.lang.Exception: NoSuchMethodError: The method 'pop' was called on null. Receiver: null Tried calling: pop() at AwesomeDialog._buildFancyButtonOk.<fn>(awesome_dialog.dart:178) at _AnimatedButtonState.build.<fn>(animated_button.dart:52) at GestureRecognizer.invokeCallback(recognizer.dart:184) at TapGestureRecognizer.handleTapUp(tap.dart:524) at BaseTapGestureRecognizer._checkUp(tap.dart:301) at BaseTapGestureRecognizer.handlePrimaryPointer(tap.dart:219) at PrimaryPointerGestureRecognizer.handleEvent(recognizer.dart:477) at PointerRouter._dispatch(pointer_router.dart:78) at PointerRouter._dispatchEventToRoutes.<fn>(pointer_router.dart:124) at PointerRouter._dispatchEventToRoutes(pointer_router.dart:122) at PointerRouter.route(pointer_router.dart:108) at GestureBinding.handleEvent(binding.dart:220) at GestureBinding.dispatchEvent(binding.dart:200) at GestureBinding._handlePointerEvent(binding.dart:158) at GestureBinding._flushPointerEventQueue(binding.dart:104) at GestureBinding._handlePointerDataPacket(binding.dart:88)

marcos930807 commented 3 years ago

Hi @Lima21 Apparently for some reason navigator.of (contex) is null at the time of dissmiss the dialog I will add a safe call operator there. Without a code to try to reproduce the error, is what we can do for now, let me tell you if you find more information about it.

marcos930807 commented 3 years ago

Hi @Lima21 try version 1.2.1.

Lima21 commented 3 years ago

Hi, thank you, I will test and add the app to production! Did you replicate the issue?

Thank you so much for the amazing package :)

Lima21 commented 3 years ago

Version 1.2.1 fixed the issue thank you!