Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

cupertino_switch

A new Flutter application which implements a CupertinoSwitch.

How to implement a CupertinoSwitch Widget

  • Use the following code to implement a switch with initially false
    CupertinoSwitch(
        value: currentState,
        onPressed: (bool state) {
            setState(() {
                currentState = true;
            });
        }
        activeColor: Colors.red,
    )

Screenshot