I'm creating an app that writes a file into local directory and needs to access it later. One problem: when I try to read the file, the process never ends (and
I started seeing this warning in all my print statements. print('Foo'); // Warning: Avoid `print` calls in production code.
Is there a Dart library or, lacking one, a correct way to handle finding the next date that would be returned from a correctly formatted rrule? For example giv
I have a Stepper and I am trying to change the color and textStyle inside the Step (yellow circle) widget (i.e: 1,2,3) from white to black. This is my code: The
Hey friends I want to know a way in which I can store the app data in offline mode and when the data connection is available then the app sync the data to my on
Im trying to migrate dart null safety but I get the following error when I run dart migrate Bad state: Error: package has unmigrated dependencies. Before migra
I would like to upload informations in my UID doc, but the information is stored in another subcategory. Future postDetailsToFirestore() async { FirebaseFi
I have some bluetooth connection code in my Flutter app. I have provided an onError callback to the stream.listen() method. The device.connect() call is throwin
I was wondering if there is a library like Eslint for Flutter/Dart that will automatically insert semicolons and trailing commas when I save the file. FLutter V
I just want to know what's the use of assert in a Dart. I was tried to figure it out by myself but I'm not able to do that. It would be great if someone explain
Always getting null when I try to find current page. How do I get current page? print('current page ${ModalRoute.of(context).settings.name}'); my end goal is,
I'm trying to implement search functionality in the list view builder But I don't have an idea to implement it. this is model class class Contacts { String? i
I am facing very strange issue in flutter app! When test my app in debug mode its working fine while in release mode it shows the white screen. This app is alre
It seems if it's just a variable, I can conditionally cast like this. Animal animal = Dog(); if (animal is Dog) { animal.bark(); // animal is of type Dog her
Dart function I have the following Dart function and I am now using null safety: void calculate({int factor}) { // ... } The analyzer complains that: The pa
I was trying to compare two different app version in flutter, But I am not able to assign , App versions in a variable. var a = 1.0.0; var b = 1.0.1; But the v
I was just trying to create an app with button which shows an alert message when the button is pressed. But it gives me this error(Mentioned below). I wrote
I am new to flutter. I just started using GetX flutter package. I am working on a ToDo list app. I am having trouble updating the widget state. What I have done
I am facing the same issue with this Error: The argument type 'Null Function(DateTime, List<dynamic>)' can't be assigned to the pa
There is a map. I want to reverse it. is there any inbuilt function for that in dart? {203: 5, 201: 3, 204: 1} This the current Map i have. {204: 1,201: 3:2