Comments (7)
same here
from auto_route_library.
I tried to run the example and got the same error, that was solved with:
flutter clean
flutter pub upgrade
flutter pub get
But then during the build it couldn't find the target on ios build, due the project configuration, that has different environments. The solution was create a new flutter project and copy the content from the example's lib folder to the lib of the new project, and the dependencies of pubspec.yaml as well. Now it's working.
from auto_route_library.
Hey, @jerryzhoujw can you please show me your pubspec file?
from auto_route_library.
hi @Milad-Akarie , I just run it in your example/
folder.
from auto_route_library.
This is true the example is not working.
For the first time I have the same error as @jerryzhoujw
When I update pubspeck to use versions instead of path it throws
Failed to precompile build_runner:build_runner:r pub run build_runner build
../../../.pub-cache/hosted/pub.dartlang.org/http_multi_server-2.1.0/lib/src/multi_headers.dart:97:8: Error: The method 'MultiHeaders.add' has fewer named arguments than those of overridden method 'HttpHeaders.add'.
void add(String name, Object value) {
^
org-dartlang-sdk:///sdk/lib/_http/http.dart:694:8: Context: This is the overridden method ('add').
void add(String name, Object value,
^
../../../.pub-cache/hosted/pub.dartlang.org/http_multi_server-2.1.0/lib/src/multi_headers.dart:129:8: Error: The method 'MultiHeaders.set' has fewer named arguments than those of overridden method 'HttpHeaders.set'.
void set(String name, Object value) {
^
org-dartlang-sdk:///sdk/lib/_http/http.dart:703:8: Context: This is the overridden method ('set').
void set(String name, Object value,
^
pub finished with exit code 1
from auto_route_library.
Not sure why, but this works for for me, using dependency_overrides
to specify the path:
diff --git a/example/pubspec.yaml b/example/pubspec.yaml
index c0ac5c0..d706630 100644
--- a/example/pubspec.yaml
+++ b/example/pubspec.yaml
@@ -8,8 +8,8 @@ environment:
dependencies:
flutter:
sdk: flutter
- auto_route:
- path: ../auto_route
+ #auto_route:
+ #path: ./auto_route/
dev_dependencies:
build_runner:
@@ -17,11 +17,19 @@ dev_dependencies:
flutter_test:
sdk: flutter
auto_route_generator:
- path: ../auto_route_generator
+ path: ../auto_route_generator/
effective_dart: ^1.2.0
hive_generator: ^0.8.1
pedantic:
+dependency_overrides:
+ auto_route:
+ path: ../auto_route/
+
+
flutter:
uses-material-design: true
from auto_route_library.
Closing due to:
- stale issue
- seems to be a solution
from auto_route_library.
Related Issues (20)
- infinite loop on context.router.pop()
- AutoTabsRouter testecase fail. HOT 4
- Initial page created when homeIndex is set differently
- add shallow routing
- Functionality to control route changes
- Functionality to control route changes HOT 4
- Unhandled Exception: type 'AutoRoutePage<dynamic>' is not a subtype of type 'AutoRoutePage<Object>' in type HOT 2
- Inherited params not working and wrong navigation HOT 1
- Generator uses absolute paths which generates an error in my app
- Route back to initial splash page every time I save. HOT 3
- Infinite loop in context.router.push() HOT 2
- Deep link navigation with AutoTabsScaffold; Consider making PlatformDeepLink constructor public
- Numbered lists don't render in README
- [Web] Navigating back does not pop sub-route as expected (with `AutoLeadingButton` arrow visible) in example HOT 1
- Initial page redirect HOT 1
- Issues combining pop with back, creating a loop. HOT 2
- [Web] Navigate back to page with required argument HOT 2
- Nested navigation don't open new page, restart opened pages HOT 2
- Tabbed Navigation and Shared Pages HOT 2
- Override Android back button and iOS Swipe back gesture 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 auto_route_library.