v2.0.1msh_checkbox
एक एनिमेटेड चेकबॉक्स, आईओएस के बीएमईचेकबॉक्स से प्रेरित, फ्लटर के अपने चेकबॉक्स के समान एपीआई का उपयोग करता है।
एक कस्टमाइज़ेबल सर्कुलर चेकबॉक्स जो चेक किए जाने या अनचेक किए जाने पर एनीमेशन खेलता है।
{"sdk":"flutter"}{"sdk":"flutter"}^2.0.0यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
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
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.
Install the package:
flutter pub add msh_checkbox
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,
colorConfig: MSHColorConfig.fromCheckedUncheckedDisabled(
checkedColor: Colors.blue,
),
style: MSHCheckboxStyle.stroke,
onChanged: (selected) {
setState(() {
isChecked = selected;
});
},
),
);
}
}
I know it's a small and simple widget, but if you'd like to support it is certainly appreciated!