Answers for "flutter switch 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

Code answers related to "Dart"

Browse Popular Code Answers by Language