Comments (2)
Thanks @robsonsilv4 for taking the time to reply, @egonm12 did the reply help solve your issue?
from mockingjay.
This happens because showDialog
is looking up for the root Navigator created by the MaterialApp
.
I think this test scenario it's not a test case for a mocked navigation, where you are navigating between two routes.
You can cover these scenarios best with integration tests or using a concrete Navigator.
But if you really want to try, provide a Navigator above MaterialApp and replace it in tests, or, receive a Navigator as parameter in the MyFloatingActionButton
, and pass the mock during tests.
from mockingjay.
Related Issues (19)
- feat: MockNavigatorProvider auto complete to support lint rule sort_child_properties_last
- How to test the OpenContainer navigation? HOT 2
- Improving The example HOT 2
- Mockingjay blocks the update of Mocktail. HOT 1
- Dependency on mocktail 0.2.0 prevents from using with 0.3.0 HOT 2
- chore: Release v0.3.0 as a stable version
- How is the Example supposed to work? I get a "type Null is not a subtype of type Future<dynamic>" error HOT 7
- NavigatorState is mockable? HOT 5
- Unable to use latest version of build_runner 2.3.2 with mockingjay HOT 1
- Unable to use mockingjay on a Windows host machine HOT 2
- Upgrade mockingjay deps to support mocktail v1.0.0 HOT 6
- Problems with Flutter `3.13.0`.
- fix: missing release for 0.4.0.
- docs: outdated README
- Updates for Flutter 3.16.0/Dart 3.2 HOT 6
- Unable to work with routes using private types. HOT 1
- chore: Confirm Flutter 3.24.0 and Dart 3.5 Support HOT 2
- ci: Pub needs your authorization to upload packages on your behalf
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mockingjay.