Answers for "FLUTTER CHANGE COLOR"

1

flutter switch color

bool isChecked = false;
Switch(
            activeColor: Colors.purple,
            activeTrackColor: Colors.purple[100],
            inactiveThumbColor: Colors.grey,
            inactiveTrackColor: Colors.grey[400],
            value: isChecked,
            onChanged: (bool value) { 
              setState(() {
                isChecked = value;
              });
             }, 
            ),
Posted by: Guest on August-28-2021
4

color() in flutter

// Color() widget can be used in the following way:
//where 123456 is the hex color code without the '#'


Color myHexColor = Color(0xff123456)
Posted by: Guest on May-14-2020

Code answers related to "FLUTTER CHANGE COLOR"

Code answers related to "Dart"

Browse Popular Code Answers by Language