Search code examples
androidflutterdartcustomization

How to create custom switch in flutter?


Flutter provides a default switch. But I want to customize it accordingly to my UI. How can customized flutter default switch?

enter image description here


Solution

  • For a custom switch. I used this class. Custom switch class

    You can customize the height and width of the switch, the border radius of the switch, the colors, the toggle size, etc.