Category "dart"

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

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

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

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

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

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

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

Flutter WidgetsBinding.instance.addPostFrameCallback((_) error

Hello friends first off all sorry for my bad English. I'm getting an error when I start debug my code in flutter-Dart. import 'package:flutter/foundat

How to load and download the data from a remote directory in flutter?

I have a directory full of pdf's with name as A00-2020-01.pdf The A00 is the user ID, 2020 is year, 01 is month And the directory is full of 1800 members with

Flutter: Clicking on TextFormField redirects me back to Home:

I only have TextFormFields in 2 places in my app. Once in my Login Widget and second in my PinWidget, which is meant to set a personal pin. Home: is always the

Flutter ffi failed to open dynamic library

I'm trying to use the flutter ffi to port over my c/c++ code but it's unable to open the dynamic library it needs to be able to work(I'm on windows) import 'dar

Flutter app orientation changes from portrait to landscape

When I load my flutter app which uses " scan: ^1.6.0 " package once the scanner gets mounted my app shifts orientation from portrait to landscape this only happ

Getting null value outside the function in flutter

I am getting a null value for the 'count' when I am accessing it through the Text widget. But when I print the value of count in the function, it shows the corr

Could you share with me information about [...] in Dart?

I've solved several solutions on Codewars and saw that one solution uses [...], I tried to google what it is, but google only finds how to create arrays (List a

Non-nullable instance field must be initialized

class Foo { int count; // Error void bar() => count = 0; } Why I'm seeing an error when I'am already initializing it in the bar method? I could understa

Hive generate adapter could not generate outputs

I am having issue generating the hive type adapter. But no such out put generated by the command line codes flutter packages pub run build_runner build --delete