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)
- Unable to access ` tabsRouter` from Tab's child to navigate to desired index
- Severe bug: Query parameters are not being encoded HOT 2
- inconsistent back button in app bar when using child routes HOT 1
- AutoRouterDelegate.declarative is deprecated - use guards instead - no docs? HOT 8
- Explicit Type Casting for Route Assignments HOT 1
- context.router.pushNamed is not working HOT 2
- Issue with screen going blank after navigating back from nested routes with wrappers in version 8.0.0 HOT 2
- Can not swipe back on iOS when using nested navigation HOT 10
- Question: Access BuildContext from within AutoRouteGuard HOT 1
- Redirect on arg parsing fail HOT 5
- Back button on Android closes App on Sub route
- Implement Persist Navigation State Feature
- Back navigation blank issue still persists in 8.1.1 HOT 1
- removeWhere removes the wrong route HOT 1
- PopScope not working on web browser back button HOT 1
- How to add new Nested Navigation Tab dynamically?
- Deeplink getting called multiple times HOT 12
- Child pages are not rendered after exiting a nested initial page with the back gesture and launching from the Android launcher. HOT 8
- Regression on StackRouter.popAndPushAll()
- Cannot reload route with callback parameter HOT 1
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.