flutter not picking colors properly
so i was learning flutter and i was checking the hot reload function of it and there is a problem i encountered the default program gives you an app that counts the number of times the button is clicked and…
so i was learning flutter and i was checking the hot reload function of it and there is a problem i encountered the default program gives you an app that counts the number of times the button is clicked and…
In my Flutter application I have a form that saves data to Firestore. The user must be able to enter data by writing or speaking. To do this, I have attached the speech_to_text plugin to the form. The problem is…
Theres a funtion i wrote that uses switch below Widget buildVerdict(BuildContext context, bool firstGuessResult, bool? secondGuessResult, bool? thirdGuessResult) { switch (widget.noOfAttempts) { case 1: return firstGuessResult == true ? const Icon( Icons.check_box, color: Colors.green, ) : Container(); case 2: return…
I'm trying to make a task app with Flutter and Firebase. I'm not the best for designing so I took a design from Dribbble that i'm trying to copy for my app. Here is the link of the design. Dribbble…
im trying to make a dropdownbutton has elements from my database (mysql) and im getting this error A value of type 'Object?' can't be assigned to a variable of type 'String?'. this is my code : String? selectedCategory; List categoryItem=[];…
i am displaying splash screen which waits for 3 seconds and then routes to another screen, but my another screen needs GIF files to load, so i have used precaceh method, so my problem is my splash screen awaits for…
class FoldersProvider extends ChangeNotifier { final _folders = <Directory>[]; FoldersProvider() { _addDefaultFoldersIfAccessible(); } // more code } _addDefaultFoldersIfAccessible is an async function. I normally should await the Future<void> result but I can't make the constructor async and I should still…
I am trying to get the image size in MB but the printed result is less than the actual result when see the size in phone gallery why? for example image size is 5MB when uploaded it from flutter it…
I want to Add words like headsup game in video when video is shared to someone these words also add to the video I wrote these methods for this purpose but these did not work for me. I am using…
I'm new to Flutter and I'm trying to understand the fallowing error: "Don't use 'BuildContext's across async gaps. Try rewriting the code to not use the 'BuildContext', or guard the use with a 'mounted' check." Here is my code: class…