Flutter – changing state of a dynamic checkbox
i have code that helps me dynamically create checkbox buttons from data in my api , now I need a way to help change the state of the check box values when i tap or untap them ,how can go…
i have code that helps me dynamically create checkbox buttons from data in my api , now I need a way to help change the state of the check box values when i tap or untap them ,how can go…
I want to use device's flashlight in my flutter applications, to turn it on and off in certain intervals, and I am looking for a way to use it. All packages I found on pub.dev are not dart 3 compatible…
On a button tap I want to show a SnackBar for 5s. If the user taps the button repeatedly in a short amount of time, multiple SnackBars are queued. Instead of showing e.g. 3 SnackBars for 5s each, I want…
I am calling a function asynchronously to register user with phone number using Firebase. I want to show a CircularProgressIndicator while making the call as it takes little time to process the request. I used a state variable, isLoading, for…
I use Linux (i.e. Ubuntu 23.04) and I installed the Dart SDK with the instructions mentioned on Dart's website. The dart command is accessible but I can not use the dartaotruntime command. The terminal says that the command is not…
I used the two ScrollView, one Scrollview is the mainScrollview of the screen, and another Scrollview is inside of the mainScrollView. If I Scroll the inside Scrollview, the outerScrollview will be never getting scrolled, If I Scroll the outer Scrollview,…
I need to give fixed width for the chip widget like this image , but width is changing based on label text return SizedBox( width: MediaQuery.of(context).size.width * 0.4, child: ChoiceChip( side: BorderSide(color: Color.fromARGB(255, 10, 60, 100)), backgroundColor: Colors.transparent, selectedColor: Color.fromARGB(255,…
my flutter doctor i get this error when i run flutter doctor --android-licenses this is my env this is my cmdline-tools my android studio sdk manager
Here is my code ,it is showing errors like The named parameter 'accentColor' isn't defined.Try correcting the name to an existing named parameter's name, or defining a named parameter with the name 'accentColor'.and the same with parameter 'brightness'. import 'package:flutter/material.dart';…
I am not sure why I get the Null check operator used on a null value error. I have used an if condition to check if it is before adding it to the list. Below the print statement prints the…