dev-vinoth / circular_check_box

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Circular Check Box

Pub

A modified version of the existing checkbox with the shape of a circle instead of a rounded rectangle!

Installing

Add this to your package's pubspec.yaml file.

dependencies:
   circular_check_box: ^x.y.z

Now in your Dart code you can use:

import import 'package:circular_check_box/circular_check_box.dart';

Usage

To use CircularCheckBox widget simply include it in your build method like this:

CircularCheckBox(
    value: this.circularSelected,
    onChanged: (value) {
        this.setState(() {
            this.circularSelected = value;
        });
    },
),

The CircularCheckBox can be customized with many properties, including:

  • tristate - the circular checkbox will have three states: unselected, selected with a check and selected with a dash
  • checkColor - change the color of the check icon
  • activeColor - change the color of the selected circular checkbox

Null Safety

This package is null safe ready, so it can be used with the new dart's Sound Null Safety.

License

Watch the License file here

Changelog

Refer to the Changelog to get all the release notes.

About

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Dart 91.1%Language:HTML 4.7%Language:Swift 3.6%Language:Kotlin 0.4%Language:Objective-C 0.1%