New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After upgrade to flutter 1.21.0-8.0.pre.110 #214
Comments
flutter doctor -v [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2) [✓] Xcode - develop for iOS and macOS (Xcode 11.6) [✓] Chrome - develop for the web [!] Android Studio (not installed) [✓] IntelliJ IDEA Ultimate Edition (version 2019.2.3) [!] Proxy Configuration [✓] Connected device (3 available) produce some error: |
same here, could you fix it? |
Until the situation is resolved, I recommend executing the following command: |
use import 'package:flutter/material.dart' hide Router; |
still with error, now inside the modular: ../../../.pub-cache/hosted/pub.dartlang.org/flutter_modular-1.3.2/lib/src/interfaces/child_module.dart:3:1: Error: 'Router' is imported from both 'package:flutter/src/widgets/router.dart' and
|
@muriloventuroso Now the problem is in the import of material.dart in the modular files. import 'package:flutter/material.dart' hide Router; Just press Crtl + left click in the terminal (or IDE) error that will open the error file. It was the temporary measure that I took and that is working so far for me. |
Thank you! I also saw that there is already a pull request to fix this officially. |
Hi all! Command bellow replaces all Router calls by ModularRouter easily:
|
Where do I put this code? egrep -lRZ 'Router' . | xargs -0 -l sed -i -e 's/Router/ModularRouter/g' I've tried in VS code terminal and cmd but haven't work. |
Please where do one add this code? |
The name 'Router' is defined in the libraries 'package:flutter/src/widgets/router.dart' and 'package:flutter_modular/src/routers/router.dart (via package:flutter_modular/flutter_modular.dart)'.
The text was updated successfully, but these errors were encountered: