Error if you work with bloc. flutter: Unhandled Exception: Bad state: Cannot add new events after calling close The reason is framework is trying to add events after dispose() method being called. When the dispose() is called you can not call or add events for the bloc. Make sure you are not calling dispose() method…
Month: December 2023
Error: The argument type ‘void Function()’ can’t be assigned to the parameter type ‘void Function(DragUpdateDetails)?’.
lib/src/chat/presentation/widgets/message_bubble.dart:71:23: Error: The argument type ‘void Function()’ can’t be assigned to the parameter type ‘void Function(DragUpdateDetails)?’.
[!] CocoaPods could not find compatible versions for pod “stripe_ios”:
[!] CocoaPods could not find compatible versions for pod “stripe_ios”:In Podfile:stripe_ios (from .symlinks/plugins/stripe_ios/ios) Specs satisfying the stripe_ios (from.symlinks/plugins/stripe_ios/ios) dependency were found, but they required a higher minimum deployment target. The above error comes if you use the stripe package for iOS.
Flutter SliverAppBar Remove Back Button
Let’s see how to remove back button from SliverAppBar in Flutter. Make sure you are using SliverAppBar using CustomScrollView. See the picture below and add the code Copy paste and it would work.
Beautify Android Studio With Plugin
My android studio looks like below It’s beautiful screen and very readable. To make your Android studio beautiful like me, you the below plugins for your Android studio
Flutter FormatException: Scheme not starting with alphabetic character (at character 1)
Let’s see the error. DioError [DioErrorType]FormatException: Scheme not starting with alphabetic character (at character 1) We get this error when you use Dio to connect with the network. It happens due to missing http or wrong url. Since we are using Android device to connect to our editor, we should use http://10.0.2.2:8000 Flutter E-commerce App
Cached_network_image_provider.dart:78:54: Error: Type ‘DecoderCallback’ not foun
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
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.