NIB / PLAYGROUND
Switch playground — NibComponents
Try switch in Flutter. Change a setting and show when confirmation is pending.
Open interactive viewChange a setting and show when confirmation is pending.
Read the full component guide and API
Public widgets and APIs
- NibSwitch
- NibSwitchThumbBuilder
- NibSwitchThumbState
Example Dart code
NibSwitch(value: enabled, label: 'Workspace updates', animated: true,
transition: const NibTransition(
duration: Duration(milliseconds: 320), curve: Curves.easeInOutCubic,
),
onChanged: (next) => setState(() => enabled = next),
)Playground controls
| Control | Type | Options or range | Help |
|---|---|---|---|
| Animate feedback | toggle | ||
| Disabled | toggle | ||
| Label | text | ||
| Off / on | number | 0.0–1.0 | |
| Loading | toggle | ||
| Thumb | choice | default, icons, images, custom, image-thumb |