Skip to content

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

License

Notifications You must be signed in to change notification settings

dr4mohamed/msh_checkbox

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

msh_checkbox

pub package pub points popularity likes

A customizable circular checkbox which plays an animation when checked or unchecked. Inspired by BEMCheckbox for iOS.

Checkbox Examples

Features

  • Choose from 4 animation/visual styles (stroke, scale in checkmark, scale in background, fade in).

  • Customize colors for active, inactive and disabled states.

  • Customize the animation duration.

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,
        style: MSHCheckboxStyle.stroke,
        onChanged: (selected) {
          setState(() {
            isChecked = selected;
          });
        },
      ),
    );
  }
}

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 35.3%
  • C++ 31.0%
  • CMake 26.9%
  • HTML 2.7%
  • C 2.1%
  • Swift 1.7%
  • Other 0.3%