Giter Club home page Giter Club logo

Comments (8)

proninyaroslav avatar proninyaroslav commented on July 28, 2024 4
Transform.scale(
  scale: 1.3,
  child: Checkbox(
    value: true,
    onChanged: (value) {},
    shape: const CircleBorder(),
    materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
  ),
),

from circular_check_box.

Jethro87 avatar Jethro87 commented on July 28, 2024 1

For those looking for an alternative, you can now pass a shape to the Material Checkbox. Like so:

    final Widget control = Checkbox(
      shape: CircleBorder(),
      value: value,
      onChanged: onChanged,
      activeColor: activeColor,
      checkColor: checkColor,
      materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
      autofocus: autofocus,
      tristate: tristate,
    );

It's not as nicely padded as this package's checkbox, but it's definitely an improvement.

from circular_check_box.

rodgav avatar rodgav commented on July 28, 2024

add code in your pubspec.yaml

circular_check_box:
    git:
      url: git://github.com/mashnoon33/circular_check_box.git

from circular_check_box.

proninyaroslav avatar proninyaroslav commented on July 28, 2024

This package is discontinued, unfortunately.

from circular_check_box.

Florian-Schoenherr avatar Florian-Schoenherr commented on July 28, 2024

@Jethro87 Thank you! Is this new? since which version? edit: 2.2.0 (https://flutter.dev/docs/development/tools/sdk/release-notes/release-notes-2.2.0)

from circular_check_box.

proninyaroslav avatar proninyaroslav commented on July 28, 2024

@Jethro87
I use it with Transform.scale(scale: 1.3).

from circular_check_box.

Jethro87 avatar Jethro87 commented on July 28, 2024

@Florian-Schoenherr I believe this is since Flutter 2.1 (currently 2.2 is in stable).

@proninyaroslav Interesting. Mind posting a short code sample?

from circular_check_box.

Jethro87 avatar Jethro87 commented on July 28, 2024

@proninyaroslav That works nicely, thanks for sharing.

from circular_check_box.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.