i am trying to install this package "modal_progress_hud".
modal_progress_hud: ^0.1.3
flutter pub get runs successfully but when i try to import the package, it doesn't work as it is shown in the picture.
Running "flutter pub get" in my_project... 0.6s
Process finished with exit code 0
i tried the same process with other packages and it works fine. is it because of the package or what might be the problem? i also ran flutter clean, pub cache repair, flutter pub upgrade, restart Android studio as well as my mac but nothing worked.
Related
recently I uninstall flutter from snap and tried to install it manually. but when I try to run flutter doctor or flutter pub get i face this issue.
then I reinstall flutter from the snap. but still the same issue. please help me...
I'm starting to learn flutter. So i have Android Studio with updated Flutter plugin
I have Flutter 3.3.7 and Dart 2.18.4
Also i have this ispection:
'Pub get' has not been run
But code runs fine and there is no syntax error in main class
I tried to run flutter doctor and sequentially ran these commands
flutter doctor
flutter clean
flutter pub get
But nothing happend.
To solve inspection problem I tried to click on Get Dependencies and Upgrade dependencies, but nothing changed
I'm trying to integrate a smart contract into my flutter and I'm referring to this example. I have included all the dependencies and dev_dependencies in the first step and I'm stuck in the second step where this error occurs where the system could not find the path to builders.dart in the web3dart package.
After updating Flutter to version 2.5.2, there were some conflicts even though no code was changed, therefore I use any in pubspec.yaml.
dependencies:
flutter:
sdk: flutter
moor: ^4.5.0
provider: ^5.0.0
path_provider: any
path: ^1.8.0
dev_dependencies:
flutter_test:
sdk: flutter
moor_generator: any
build_runner: any
flutter_launcher_icons: any
For me, I had to downgrade to web3dart: ^2.3.5 from ^2.4.1 (pubspec.yaml)
Ran flutter pub get
But the web3dart-2.4.1 folder remained in .../flutter/.pub-cache/hosted/pub.dartlang.org/
The problem was that build_runner was still looking in the 2.4.1 folder
So I removed everything from the .../flutter/.pub-cache/hosted/pub.dartlang.org/web3dart-2.4.1 folder and moved everything from the .../flutter/.pub-cache/hosted/pub.dartlang.org/web3dart-2.3.5 folder into the .../flutter/.pub-cache/hosted/pub.dartlang.org/web3dart-2.4.1 folder
Closed Android Studio
Reopened it and ran flutter pub run build_runner build
And it worked
CAUTION: DO NOT RUN FLUTTER PUB UPDATE BEFORE RUNNING FLUTTER PUB RUN BUILD_RUNNER BUILD
When I ran flutter pub update, it pulled a completed different web3dart version (2.4.0) into .../pub.dartlang.org/, which has the same bug in it.
Your folder version may be different, but if you can get the web3dart-2.3.5 version and find which folder build_runner is looking in (by running it in Terminal and reading the error message), you can put the good code into there and it should work
I have a Linux machine running ubuntu 21.10 where I installed flutter manually. and when I try to activate flutterfire_cli it shows this erroroutput from dart pub global activate flutterfire_cli
this is the output from flutter doctorflutter doctor output
versions I'm using
flutter: 3.0.3 channel stable, Dart SDK version: 2.17.5, firebase: 11.1.0
If anyone runs into this, I installed firebase using the auto-install script previously I used npm and run the "dart pub cache clean" command I don't know which fixed it but it works.
I'm trying to get packages, when I run flutter pub get it says a color red text I don't know what this means ! analyzer 0.38.4 and just terminated the process.
C:\Mobi\del_cus_app>flutter pub get
! analyzer 0.38.4
Running "flutter pub get" in del_cus_app... 1.7s
C:\Mobi\del_cus_app>
I also already upgrade the flutter version
Hello BGTabulation BGTabulate, When you trying to get package then sometime our dependency is override on another package so when this kind of issue occurs then may be you have to do like
dependencies:
intl: ^0.15.0
dependency_overrides:
intl: ^0.16.0
Note the space character of the entered values.
dependencies:
flutter_native_splash: ^0.1.9
Delete pubspec.lock file and run flutter pub get
try to using
flutter clean command
then close IDE and restart it again,
it happens sometimes when dart analyzer crashes.