v2.0.1msh_checkbox
एक एनिमेटेड चेकबॉक्स, आईओएस के बीएमईचेकबॉक्स से प्रेरित, फ्लटर के अपने चेकबॉक्स के समान एपीआई का उपयोग करता है।
एक कस्टमाइज़ेबल सर्कुलर चेकबॉक्स जो चेक किए जाने या अनचेक किए जाने पर एनीमेशन खेलता है।
यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
A customizable circular checkbox which plays an animation when checked or unchecked. Inspired by BEMCheckbox for iOS.
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!
निर्भरता सूची 3 आइटम
{"sdk":"flutter"}{"sdk":"flutter"}^2.0.0उपयोग के अनुसार छाँटें, गतिविधि की तुलना करें और अपनाने से पहले मूल प्रोजेक्ट की आवश्यकताएँ जाँचें।
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗