fix!: Updates for Flutter 3.16.0/Dart 3.2#65
fix!: Updates for Flutter 3.16.0/Dart 3.2#65alestiago merged 6 commits intoVeryGoodOpenSource:mainfrom
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. |
alestiago
left a comment
There was a problem hiding this comment.
LGTM! Thank you for the contribution 💙 !
We'll update the README and any other documentation in a separate Pull Request.
Status
READY
Description
MockNavigatorconstructor now containsinitialCanPop(defaultfalse), which is used to stubNavigator.canPop()automatically; it can ofcourse be overridden afterwards by stubbing again_MockMaterialPageRoute.hackOverlays()by creating a_MockOverlayStateclass that allows overriding ofOverlayState.mountedType of Change