Category "dart"

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

Way to disable background gesture/tap actions behind floating action button?

I am developing an app in flutter using the google_maps_flutter package. I listen for user taps on the screen and record the lat/lng of that press. However, I d

How can I create an animation for the bottom navigation bar in Flutter?

I have a bottom navigation bar with some tabs and I want to animate the icons of them when I switch page, without an external package. And I have one more quest

library_private_types_in_public_api and StatefulWidget

After upgrade the linter to the new version (flutter_lints: 2.0.1) in my pubspec the linter enables this rule: library_private_types_in_public_api by default. I

TextFormField update input to 1 if user keys in 0 flutter

I am having a TextFormField as a child in Form like below Form(