I am trying to sort a list with reference to another list. Consider this example, List<String> a = ["a", "b", "c"]; List<int> b = [2, 3, 1]; Now,
In my Flutter project, I am doing API calls to fetch data by GET request. After parsing the JSON object from the response, I just show the value in the Text wid
Using the code from the package I was unable to catch the exception. Note that I would like to catch this specific exception. // from https://pub.dev/packages/
I'm very new to flutter and am trying to figure out how to get a gesture detected on a CustomPaint path. I can click on a host of other things but not on paths
I'm trying to test firestore in my flutter-app but I can't really load the data as expected. This is how I get the data: Firestore.instance .collecti
I'm currently trying to pick up a random item in a list in dart. For this, I would like to generate a pseudo-random number (my seed) which will be the index whe
I am trying to get permission to access music files in android using onAudioQuery package flutter but it is giving me this error: e: C:\flutter\.pub-cache\hoste
I have created a cubit testing project in flutter which is working fine, but when I am writing a UI test case with mockito for the same it is throwing the follo
While writing add to app (Flutter embedding) for a complex iOS app, I run into the issue of sometimes derivedData not deleting properly, or odd things that make
How can I add watermark/camera name when capturing image from camera in flutter. I want to add current date and time when image is clicked but I'm unable to do
When publishing my package after adding web support i got this error Package validation found the following error: * line 9, column 1 of lib/hexcolor_web.dart:
I want to have a print method in my class, also I want to be able to use print inside it example: class A { String val; void print() { print(val); } }
The following assertion was thrown while applying parent data.: Incorrect use of ParentDataWidget. The ParentDataWidget Flexible(flex: 1) wants to apply ParentD
We want to show image on a pdf from assets folder in Flutter web application: import 'package:pdf/pdf.dart'; import 'package:pdf/widgets.dart' as pw; import 'pa
I need to make HTTP Post JSON request but first i need to Get 3 different JSONs and make 1 of them. I thought better way to do this is to work
I am trying to decode animated webp image file and encode it's frames to animated webp image file in Dart (cli) Dart Code: import 'dart:io'; import 'package:ima
Actually in flutter DateTime.now() is returns device date and time. Users sometimes change their internal clock and using DateTime.now() can give wrong result.
Here is the code. I want to remove the black underline just below text, and currently the TextField is in edit mode: TextField( autofocus: true, de
This dependency supposedly supports web, but the implementation to listen for the callback and retrieve the token is missing. After digging around for the last
I have a screen, which contains a Form with a StreamBuilder. when I load initial data from StreamBuilder, TextFormField show data as expected. When I tap inside