Here we will see how to use PopScope context and backbutton. Here you have bloc or provider, you can access them from PopScope. We need to use the onPopInvoked callback function. Within this function we can call our or use our context. So with this you can use context to go back based on your…
How to remove extra space between Tabs in Flutter
Extra space between Tabs in flutter created by default space in Tabs. It’s easy to remove. Look at the code below The above code has labelPadding: EdgeInsets.zero which removes extra space or padding between tabs in Flutter You see the explore tab is nice
E/RecaptchaCallWrapper(25130): Initial task failed for action RecaptchaAction(action=signInWithPassword)with exception – The supplied auth credential is incorrect, malformed or has expired.
You may get this error, because you don’t have a firebase project created for this app. And you also don’t have authentication tab activated for this. Just go ahead and create a firebase project and activate authentication tab. You will be good to go.
Open and close drawer menu from other page
Here we will see how to open and close drawer from nested menu flutter. You will learn how to do the below We will see how to achieve the above effect. Put the above code somewhere in your code, but you need to change the color based on your requirement. At the same time, you…
Flutter Error : Could not resolve all artifacts for configuration ‘:image_picker_android:debugUnitTestRuntimeClasspath’
Flutter Error : Could not resolve all artifacts for configuration ‘:image_picker_android:debugUnitTestRuntimeClasspath’ The above error happens if you have problem in the app build gradle configuration. If you set up android.gradle like you won’t have the problem anymore. Make sure you have the lintOptions code
flutter: Unhandled Exception: Bad state: Cannot add new events after calling close
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…
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