-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix!: Updates for Flutter 3.16.0/Dart 3.2 #65
Conversation
If were making these changes, can we also get the pubspec updated to |
Can we merge this? I can't update project Flutter version because of this. Thanks a lot! |
You can temporarily override your dependency:
|
Is there a particular reason other than convenience that I'd rather have an error during my test telling me I haven't mocked that method, rather than looking for a default that's hard to find. Other than that, I'm okay with the changes. Thanks for the contribution! |
Nope, just for convenience since it will have to be stubbed for every MockNavigator. I'll take it out and update the tests. |
Sounds good. If that's fixed then I think we're good to go on this one. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you for the contribution 💙 !
We'll update the README and any other documentation in a separate Pull Request.
Status
READY
Description
MockNavigator
constructor now containsinitialCanPop
(defaultfalse
), which is used to stubNavigator.canPop()
automatically; it can ofcourse be overridden afterwards by stubbing again_MockMaterialPageRoute.hackOverlays()
by creating a_MockOverlayState
class that allows overriding ofOverlayState.mounted
Type of Change