The above error maybe due cached_network_image issue Error (Xcode): ../../../.pub-cache/hosted/pub.flutter-io.cn/cached_network_image-3.2.3/lib/src/image_provider/cached_network_image_provider.dart:78:54: Error: Type ‘DecoderCallback’ not foun To fix it just use the latest version of the package and you are good to go. Complete E-commerce App
Category: Flutter Error
Error: The getter ‘physicalGeometry’ isn’t defined for the class ‘FlutterView’
You may the error when you work with flutter_screenutil package. Error: The getter ‘physicalGeometry’ isn’t defined for the class ‘FlutterView’ To get rid of this error just update your flutter_screenutil package to the latest version.
[!] Unable to find a target named RunnerTests in project Runner.xcodeproj, did find Runner.
Unable to find a target named RunnerTests in project Runner xcodeproj did find Runner So solve this comment out the below lines in your podfile
Unhandled Exception: ‘package:flutter_easyloading/src/easy_loading.dart’: Failed assertion
Flutter easyloading package throws the below error Unhandled Exception: ‘package:flutter_easyloading/src/easy_loading.dart’: Failed assertion That simply means you are not initializing the init() method of the package. We should do it inside MaterialApp(). Here you see the builder:EasyLoading.init() method. Here we have used GetMaterialApp() instead of MaterialApp() since we are using GetX package.
Futter Dio HandshakeException: Connection terminated during handshake
There could be many reasons why this error happens. One of the error is due to wrong SSL which means https or no http. If you are on local host in that case if you use https with base url, the you will get Futter Dio HandshakeException: Connection terminated during handshake You see, locally I…
Video Player Controller network method is deprecated
If you work with Flutter video_player plugin, you will see the below We need to pass url as String to network() method. Here we see a crossed line through, which shows that this api is deprecated. To solve this issue we need to use networkUrl() and Uri.parse() together. So use networkUrl(Uri.parse(“stringUrl”));
Error: Unsupported operation: Platform._localeName
You may encounter this issue when you try to run for Flutter web application. Normal iOS and Android platforms are not recognized on Flutter typical mobile app. If you want to run them both on iOS, Android and Flutter Web, you need to change the package. In general, your error looks like below To get…
GlobalKey was used multiple times inside one widget’s child list.
GlobalKey was used multiple times inside one widget’s child list. this is console:Performing hot restart… Syncing files to device HD1901… Restarted application in 5,513ms. I/flutter ( 4581): route name is / I/flutter ( 4581): storage serve I/flutter ( 4581): pref_Instance of ‘SharedPreferences‘ Solutions You need to add await and async before you load sharedprefrerences. Inside…
Flutter podfile 0 dependencies [Solved]
Code for Podfile 0 dependencies. It happens because your Podfile is empty. Nothing is there. Put the code below and run pod install. Pod installation complete! There are 0 dependencies from the Podfile and 0 total pods installed.
[firebase_auth/invalid-credential] The supplied auth credential is malformed or has expired
This [firebase_auth/invalid-credential] The supplied auth credential is malformed or has expired could be an weird behavior. This could happen due to many reasons. This mostly happen on Android emulator. Solution I have encountered a weird one. This one happened due to emulator. I had to delete the app, reboot the emulator and reinstalled the app….