material_neumorphic_checkbox 1.1.4 material_neumorphic_checkbox: ^1.1.4 copied to clipboard
A Flutter package for creating Neumorphic checkbox.
Material Neumorphic Checkbox #
Part of Material Neumorphic widgets suit.
Usage #
A Neumorphic Checkbox
takes a NeumorphicCheckboxStyle as style
takes the current checked state as value
notifies the parent when user interact with this widget with onChanged
bool check1 = false;
bool check2 = false;
bool check3 = false;
Widget _buildChecks() {
return Row(
children: <Widget>[
NeumorphicCheckbox(
value: check1,
onChanged: (value) {
setState(() {
check1 = value;
});
},
),
NeumorphicCheckbox(
value: check2,
onChanged: (value) {
setState(() {
check2 = value;
});
},
),
NeumorphicCheckbox(
value: check3,
onChanged: (value) {
setState(() {
check3 = value;
});
},
),
],
);
}