Category "dart"

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(

Environment variables in string.xml in Flutter

Is it possible to send environment variables to string.xml in flutter? How to do it?

Error: Error when reading 'pub': No such file or directory

I am trying to set up a Dart project to use shelf. Now to enable hot reload, I am trying to install dartman. On doing pub global activate dartman Command 'pub'

How can I send a soap request using flutter with two arguments and a wsdl

I am trying to send a soap request with two arguments using flutter. The wsdl can be found at this address I didn't found any ways to only send a request with

Changing icon color in light theme doesn't have any affect

I'm writing a flutter application and I'm trying to define my own themes for light and dark themes. coding with android studio and testing it using the regular

Difference between Isolate vs Thread vs Process?

As we know flutter app runs in an isolates. Somewhere I read that isolates are not system processes. So what really an isolate is and how it's different from pr

How do I correct this flutter error: Unexpected token a in JSON at position 0?

When I send data from flutter to php I am getting the error below. I am using dropdown and map to display and collect the date selection. I also have a few text

flutter: Target of URI doesn't exist

When I try to open the flutter project of my developer, I get hundreds of errors, that he does not find multiple packages for instance. Packages that consist wi

How To Copy text from a flutter button class while adding additional texts to clipboard?

ive created a custom button that I use in multiple places in my flutter app. and I've also used the toast package to copy and show text anytime the button is cl

Test API calls in Bloc in Flutter

Im first time trying to write Tests for Bloc, Here I face the problem that is : NoSuchMethodError: The method 'fetchPlayerToLogin' was called on null. Receiver:

How to Fix The method '>=' was called on null. Receiver: null Tried calling: >=(25) in dart flutter

Guys, I am trying to create a BMI calculator app. everything is working fine but I am getting an error which is shown below while passing data in the condition

Flutter FCM: Storing Notification Data while the app is in the Background/Closed

I am trying to store data received via FCM inside a class in order to navigate to a specific tab of my app after a user clicks on that notification. My problem

I get this error after the installation of kommunicate chat bot in the app

FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':app:processDebugMainManifest'. Manifest merger failed : Attribute applica

The method 'copy' isn't defined for the type 'PickedFile'

After i upgraded Flutter i followed all the steps for migration code and now i get this error, can't use to .Copy. class ImageInput extends StatefulWidget { f

How to get the index of each element in a list flutter?

I ran into a problem. I have a Checkbox in the value method, I need to specify _isChecked[index]. But I have an error on the word index. I understand why the er

Is there a formula that swaps two elements in an array?

Is there a formula that swaps two elements in an array? for example nums=['a','b','c','d']; Swapping d and b and making my new string nums=['a','d','c','b'];

Notification channel 'basic_channel' does not exist., n.a.a.k.f.a:

As per flutter package I implemented code on my project but it threw exception while making build, "Notification channel 'call_channel' does not exist., n.a.a.k