Radio
A representation of Radio Buttons.
NikuRadio
accepts all the props as same as Radio.
dart
// Using namespace
n.Radio(true);
// Using Niku Prefix
NikuRadio(true);
Example Usage
dart
n.Radio(state)
..onChanged = updateState;
Declarative color
Using declarative hook to update MaterialStateProperty
, consists of:
- fillColor
- overlayColor
dart
n.Radio(state)
..onChanged = updateState
..useFillColor(
base: Colors.gray,
hovered: Colors.blue,
pressed: Colors.blue,
focused: Colors.blue,
)
..useOverlayColor(
all: Colors.blue,
);