Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mohammad-mohammady/switcher_button


https://github.com/mohammad-mohammady/switcher_button

Last synced: 1 day ago
JSON representation

Awesome Lists containing this project

README

        

# switcher_button

Switcher button.
Flutter switch button with minimal design and material animation and highly
customizable.It can be use as switch button or toggle buttons.

| Property | Description |
| --- | --- |
| `size` | Size of widget, width of widget is equal size and height of widget is equal size / 2|
| `onColor` | onColor is color of widget when it's on |
| `offColor` | offColor is color of widget when it's off |
| `value` | initial value of widget if true widget switch on else widget switch off |
| `onChange` | When user tap on switch button and change state of widget onChange will call and pass current state of widget |

Usage
-----

```dart
SwitcherButton(
value: true,
onChange: (value) {
print(value);
},
)
```
thanks to https://dribbble.com/katelaguta for nice design.