Comments (3)
@stan-at-work
Can you provide a runnable reproducible code sample that triggers this exception ?
from flutter.
@stan-at-work Can you provide a runnable reproducible code sample that triggers this exception ?
Sure, i will create an application. should be done in a couple of days
from flutter.
It looks like apps created with Material.router(...)
method falls into this condition inside WidgetsApp
:
https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/widgets/app.dart#L1673
Navigator
(which builds the Overlay
) is created on the "else" statement only...
Then, inside the router delegator, we read this statement: https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/widgets/router.dart#L1259
Which makes me think that the router delegate expects a Navigator, but it's not mandatory (hence the words "...typically a [Navigator]...").
After saying this, I don't know if it's a Flutter problem (eg: lack of enforcing the RouteDelegator
to provide a real Navigator
) or a problem of other packages (eg: GoRouter, which implements their own RouterDelegate
+ _CustomNavigator
without rendering a Overlay
)
https://github.com/flutter/packages/blob/main/packages/go_router/lib/src/delegate.dart#L18
https://github.com/flutter/packages/blob/main/packages/go_router/lib/src/builder.dart#L126
PS: I am not sure if that's the root cause of the issue btw. I just shared what I could find hehe.
As a workaround for me atm, I am building an overlay via the MaterialApp.router(builder: ...)
property.
from flutter.
Related Issues (20)
- - HOT 1
- Add easy way to change app-wide font family for `CupertinoApp`
- [tool_crash] ProcessException: Failed to find "D:\Flutter\flutter\bin\cache\dart-sdk\bin\dartaotruntime.exe" in the search path. Command: D:\Flutter\flutter\bin\cache\dart-sdk\bin\dartaotruntime.exe, OS error code: 0 HOT 1
- [tool_crash] ProcessException: Failed to find "D:\Flutter\flutter\bin\cache\dart-sdk\bin\dartaotruntime.exe" in the search path. Command: D:\Flutter\flutter\bin\cache\dart-sdk\bin\dartaotruntime.exe, OS error code: 0 HOT 1
- Throwing OutOfMemoryError HOT 1
- -
- build is called on IOS when app goes to background HOT 2
- VideoPlayer failed to auto-rotate the video after upgrade flutter to version 3.22.0. HOT 9
- Please add an event handler (callback) TextField for _TextFieldState._handleFocusChanged to allow easy access to focus changes HOT 2
- GLFW examples are not functional on macOS. HOT 1
- [tool_crash] FileSystemException: Cannot create link, OS Error: File exists, errno = 17 HOT 1
- -
- {WEB (CanvasKit)} CanvasKit renderer never starts application. HOT 5
- pub get complaining about dependecnies that cannoty be upgrtaded due to SDK pinned dependencies HOT 4
- Cannot Trigger SliverAppBar Stretch in NestedScrollView HOT 1
- Error C3646 when building Flutter app for Windows,D:\Windows Kits\10\Include\10.0.22621.0\um\shellapi.h(524,20): error C3646: “lpStartupInfo”: 未知重写说明符 HOT 2
- Animation jumps when using the forward method of AnimationController in initState
- Turn on the animation in initstate and the animation will jump. HOT 3
- [Flutter Windows] Japanese Textfield does not work properly when setState is present in onChanged(v) or inputFormatters are added HOT 1
- Cyrillic alphabet rendered incorrectly for Impeller in Android HOT 2
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 flutter.