msh_checkbox 1.0.3 copy "msh_checkbox: ^1.0.3" to clipboard
msh_checkbox: ^1.0.3 copied to clipboard

outdated

An animated checkbox, inspired by BEMCheckbox for iOS, using an API similar to Flutter's own Checkbox.

msh_checkbox #

A customizable circular checkbox which plays an animation when checked or unchecked.

Untitled

Features #

As of this version of the package, MSHCheckbox only has one style and animation available, however the size, colors, and animation duration are all customizable.

Getting started #

Install the package:

flutter pub add msh_checkbox

Usage #

class Example extends StatefulWidget {
  Example({Key? key}): super(key: key);

  @override
  State<Example> createState() => _ExampleState();
}

class _ExampleState extends State<Example> {
  bool isChecked = false;

  @override
  Widget build(BuildContext context) {
    return Center(
      child: MSHCheckbox(
        size: 60,
        value: isChecked,
        checkedColor: Colors.blue,
        uncheckedColor: Colors.black12,
        onChanged: (selected) {
          setState(() {
            isChecked = selected;
          });
        },
      ),
    );
  }
}
48
likes
0
points
2.79k
downloads

Publisher

unverified uploader

Weekly Downloads

An animated checkbox, inspired by BEMCheckbox for iOS, using an API similar to Flutter's own Checkbox.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on msh_checkbox