Category "flutter"

Call build on Text widget when i change tab

I want to change title in appBar, when when I switch from one tab to another. In my current code do not do that because on change tab build is not called. Thank

Flutter SafeArea: avoid notches, but ignore rounded corners

Is there a way to detect and avoid notches in a phone's screen (for example, the camera notch in an iPhone X), but ignore a screen's rounded corners? For exampl

Is it allowed to add event to another bloc from inside of a bloc?

I am using bloc library available in Dart to implement "bloc" pattern. I will eventually move onto flutter_bloc library so I can use it inside a real app. I'm h

PlatformException(multiple_request, Cancelled by a second request, null, null) in imagePicker

I am using a riverpod provider class to handle picking of image from gallery. However, once an image is picked, I get the error: PlatformException(multiple_requ

Allow accessibility screen reader to read a number string one-by-one as digits using semantics [flutter]

I'm using Semantics to adapt my app for accessibility and want to read a phone number (like: Text("950874123")) one to one instead "million, thousand...". Is th

How to make drag and drop from drawer in Flutter

I've provide the code. So the dragable widget is in the drawer and the drag target is in the home screen. But when I drag the container to put it in the drag ta

precachePicture throwing null exception when using in main.dart

I am using svg in my onboarding screen and I want to precache it as it takes time for svg to load. But whenever I am trying to precache, I'm getting an exceptio

Flutter Error:Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current user: Flutter Error

I have just started mobile app development and I choose flutter as my first mobile app developing language(I know python,html,javascript already). I have instal

Flutter Autocomplete widget delays updating suggestions

I'm facing a problem using the Autocomplete widget. Basically, the list of options that shows up while I'm typing in the text field is delayed by one character.

Detect target phone number on incoming call is it for SIM 1 or for SIM 2 for Android 29+?

I have tried all of the stack overflow solutions but it didn't work, all solutions are outdated I tried both below codes but it always return the -1 int slot =

How to calculate age using datetimepicker?

Im trying to figuring out how to calculate the age of user in my flutter application. What I want is only valide user which are have a min age of 18. Heres my c

Hover Color for Icon

I am trying to implement a favorite Button in Flutter. I am happy with the properties when clicking the button but I am not happy with the hover animation. I wa

App Tracking Transparency implementation with firebase/facebook analytics

Since ios 14 developers are required to use App Tracking Transparency framework to request permissions from user for tracking. My app is running in flutter and

Radio button style using icon buttons in flutter

I want to create a radio button style voting system using icons in Flutter (Dart) which looks like this: vote icons The concept is simple: The page will display

NoSuchMethodError (NoSuchMethodError: The method 'forEach' was called on null. Receiver: null Tried calling: forEach(Closure: (dynamic) => Null))

i got this problem while trying to fetch data from api NoSuchMethodError (NoSuchMethodError: The method 'forEach' was called on null. Receiver: null Tried call

Release APK version not updating

I´m writing a flutter application and it is currently on version 0.7.0, I already specified the version in pubspec.yaml and the Debug APK is already on th

I cant run Geolocator.getCurrentPosition() in background (Flutter)

when I try to getCurrentPosition while the application in the background or terminated, it returns ' MissingPluginException(No implementation found for method g

Firebase data is not fetching in flutter app

I'm developing a simple app to learn firebase, the creation of data is working fine, but they can't fetch the created data. and there is no error showing. just

Flutter Speech to text listening continuously

Please how i can implement Flutter Speech to text listening continuously without typing in a button to start Please give some suggestion about this. Thanks in a

Send Keyboard Event Flutter

I am trying to find a way to send keyboard events from my flutter app to a WebView that I have open in app. For example, the WebView has some JS code with an Ob