How can i achieve similar solution to: How to get a substring between two strings in PHP? but in DART For example I have a String:String data = "the quick brow
The application needs to implement language switching at runtime. Wrote a bloc with event and state and called BlocBuilder in main.dart. But I don't know how to
I built an app in flutter, dart to access the location of the user. I now want to share the current physical location of the user via Whatsapp, email etc but no
This Dart official video states that Dart's so-called "sound null safety" is better than Kotlin's null safety design, because it can optimise the code based on
Currently, when running the command flutter create -t module --org com.example app we are able to generate a Flutter module which we can add to a host parent ap
I'm working with some tutorials to learn Flutter and the one that I'm taking now uses VSCode. I actually prefer it to Android Studio because it doesn't overhea
I am attempting to add vertical divider between the leading portion and the title of a ListTile. I understand that Flutter now has a VerticalDivider widget,
looks like this : I have a problem when flutter web debugging. My launching project doesn't stop and displays a blank page.blank page like this : i try too we
I want the DraggableScrollableSheet to stop moving up when there are less items in the ListView. Instead, blank space is created underneath to fill the entire s
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,