data

[ String ] The text to display.

textDirection

[ TextAlign ] The direction in which the text flows.

Switch

Switch

A material design switch.

value [required]

[ boolean ] Whether this switch is on or off.

onChanged [required]

[ callback ] Called when the user toggles the switch on or off.

Slider

Slider

Used to select from a range of values.

value [required]

[ double ] The current value of the slider.

onChanged [required]

Called when the user selects a new value for the slider.