Search
 
SCRIPT & CODE EXAMPLE
 

DART

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;
              });
             }, 
            ),
Comment

PREVIOUS NEXT
Code Example
Dart :: flutter appbar width 
Dart :: media query width flutter 
Dart :: how to get the name of the day in flutter 
Dart :: dart round to 2 decimals 
Dart :: order list dart 
Dart :: height appbar flutter 
Dart :: dart datetime difference 
Dart :: flutter mediaquery 
Dart :: dart timer delay 
Dart :: put container in bottom column flutter 
Dart :: setting backgroundColor for snack bar does not change background color 
Dart :: flutter navigation pop 
Dart :: dart loop through array 
Dart :: dart card outline 
Dart :: text field placeholder color flutter theme 
Dart :: how to put tapping effect on card in flutter 
Dart :: containskey dart 
Dart :: six_ft_apart 
Dart :: text field validation in flutter 
Dart :: random colors for container flutter 
Dart :: getting pi in flutter 
Dart :: dart slice 
Dart :: dart extension function 
Dart :: flutter animatedalign 
Dart :: dart list sort by value 
Dart :: flutter remove dropdown shadow appbar 
Dart :: flutter: httpclient method 
Dart :: textbutton flutter 
Dart :: alertdialog padding flutter 
Dart :: dart inheritance 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =