You may get this error regardless you use Getx, BLoC or Riverpod with TypeAheadType plugin. TypeAhead plugin is used for search products or location. With latest Flutter and TypeAhead update you need to use SingleChildScrollView to be wrapped around your TypeAheadType widget. Wrap your TypeAheadField inside SingleChildScrollView and you would be good.
Category: Flutter Error
flutter_localizations from sdk which depends on intl 0.18.0, intl 0.18.0 is required
This warning get it more like below flutter_localizations from sdk which depends on intl 0.18.0, intl 0.18.0 is required or depends on intl ^0.17.0, version solving failed or Because flutter_cupertino_localizations >=1.0.1 doesn’t support null safety and no versions of flutter_cupertino_localizations match >=1.0.1-nullsafety.0 <1.0.1, flutter_cupertino_localizations >=1.0.1-nullsafety.0 is forbidden. So, because chatty depends on flutter_cupertino_localizations ^1.0.1-nullsafety.0, version…
flutter [!] CocoaPods could not find compatible versions for pod “firebase_core”:
The above error happens due iOS swift version and firebase_core version mismatch. To solve this make sure you do the below things See from the above photo that, I have upgrade the platform :ios, ‘13.0’ previously it was ‘11.0’ Use the version as high as possible. After that run flutter pub get Then go to…
Flutter Android image does not show Error: SocketException: Connection refused
Error: SocketException: Connection refused (OS Error: Connection refused, errno = 111), address = 127.0.0.1, port = 52958 If you are using Flutter android and if you have a backend as localhost host, then you might not doing it right when to display the image. In general if you have image loading or api, then in…
Flutter Video Player does not play
I was trying to use flutter video_player and it’s not playing or loading. One of the reasons where the url. My url of the video from the network contained empty spaces, looks like video_player does not recognize this kind of link. There should not be any empty space in url like below You may replace…
Unhandled Exception: type ‘_Map‘ is not a subtype of type ‘String?’
Unhandled Exception: type ‘_Map<String, dynamic>’ is not a subtype of type ‘String?’ The other day I was working with restful api call in my flutter app and I got the above error. We often get this error, and how to solve this error? Before solving you need to understand why you have this error at…
Flutter WebView is not recognized or defined
If you webview_flutter plugin, you may get error saying, it’s not recognized. It may happen because of version problem. With me the lower version of webview_flutter works with latest version of flutter. With me the below version worked I have tried to use ^4.2.0, but that’s not recognized by the sdk and editor. If you…
Error: Error when reading ‘../../.pub-cache/hosted/pub.dev/get-4.6.1/lib/get.dart/’: Not a directory
If you import a library or package and you may get Error: Error when reading ‘../../.pub-cache/hosted/pub.dev/get-4.6.1/lib/get.dart/’: Not a directory. It happens because your path is not a directory. In flutter, if you import a package or a file it must end with .dart. But from the error you see there’s an extra slash. After slash…
Firebase Failed to get FIS auth token Flutter [Solved]
Now, this error happens due to blockage of communication between your app and firebase server. It means your app could not communicate with Firebase server. There could be many reasons why you will get this error Internet and VPN Connection To solve this error, make sure your android emulator has internet connection. If no internet…
AAPT: error: resource xml/network_security_config not found flutter Android
This means it’s missing a network_security_config. So to over this problem we need to create a new folder inside res folder. Name the new folder xml. Inside this new folder create a file network_security_config.xml and inside this xml file put the code below