Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mohammad-mohammady/switcher_button
https://github.com/mohammad-mohammady/switcher_button
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/mohammad-mohammady/switcher_button
- Owner: mohammad-mohammady
- License: mit
- Created: 2021-03-15T08:39:49.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-18T16:28:47.000Z (over 3 years ago)
- Last Synced: 2024-08-03T14:07:45.197Z (3 months ago)
- Language: Dart
- Size: 79.1 KB
- Stars: 9
- Watchers: 1
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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.