Comments (8)
Transform.scale(
scale: 1.3,
child: Checkbox(
value: true,
onChanged: (value) {},
shape: const CircleBorder(),
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
),
),
from circular_check_box.
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.
add code in your pubspec.yaml
circular_check_box:
git:
url: git://github.com/mashnoon33/circular_check_box.git
from circular_check_box.
This package is discontinued, unfortunately.
from circular_check_box.
@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.
@Jethro87
I use it with Transform.scale(scale: 1.3)
.
from circular_check_box.
@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.
@proninyaroslav That works nicely, thanks for sharing.
from circular_check_box.
Related Issues (14)
- Color options HOT 1
- Missing mouse change on hovering the checkbox HOT 3
- 'package:circular_check_box/circular_check_box.dart': Failed assertion: line 58 pos 14: 'tristate || value != null': is not true.
- Migrate the package to null safety HOT 1
- flutter version 2.1 cant render object HOT 1
- Null Safety Migration HOT 2
- When I long press the button in the selected state, it will report an error
- NoSuchMethodError was thrown during paint()
- pub.dev: package is discontinued HOT 2
- white active color HOT 1
- RenderToggable not found HOT 2
- After migration on flutter 1.17 application wont build HOT 4
- any way to change height and width? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from circular_check_box.