Category "dart"

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(

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