Chiclet आपको बहुत कस्टमाइज़ किए जा सकने वाले द्वीप शैली के बटन प्रदान करता है, जो लोकप्रिय भाषा सीखने ऐप Duolingo और Figma कोर्स में मिलने वाले बटनों के समान हैं।
सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
चिकलेट एक फ्लटर पैकेज है जो डुओलिंगो और फिगमा कोर्सेज से प्रेरित कस्टमाइज़ करने योग्य द्वीप-शैली के बटन प्रदान करता है। इन बटन में गोल आकार, तैरते हुए डिज़ाइन और चिकनी एनीमेशन और विज़ुअल फीडबैक होता है, जो इंटरैक्टिव यूआई के लिए आदर्श है। डेवलपर्स आसानी से उनके दिखावट, आकार और व्यवहार को ऐप की भावना के अनुरूप ढाल सकते हैं। यह पैकेज कई प्लेटफॉर्म को सपोर्ट करता है, जिससे एंड्रॉइड, आईओएस, वेब, मैकओएस, विंडोज और लिनक्स पर एक समान डिज़ाइन बना रहता है। यह शैक्षिक ऐप्स, ओनबोर्डिंग फ्लो और गेमिफाइड इंटरफेस में विशेष रूप से उपयोगी है, जहां आकर्षक बटन इंटरैक्शन उपयोगकर्ता अनुभव को बढ़ाते हैं।
उपयोग
गेमिफाइड लर्निंग ऐप्स
ऑनबोर्डिंग स्क्रीन्स
इंटरैक्टिव ट्यूटोरियल
शैक्षिक यूआई
मोबाइल-प्रथम डिज़ाइन प्रणाली
मुख्य विशेषताएँ
आइलैंड-शैली के बटन डिज़ाइन
उच्च रूप से कस्टमाइज़ किया गया दिखावट
चिकनी एनीमेशन
क्रॉस-प्लेटफ़ॉर्म समर्थन
एम्बेडेड टच फीडबैक
प्रतिक्रियाशील आकार
इनके लिए उपयुक्त
शैक्षिक ऐप विकासकर्ता
मनोरंजक तत्वों की तलाश में UI डिजाइनर
ऑनबोर्डिंग फ्लो वाले ऐप्स
गेमिफाइड अनुभव
दृश्य चमक के बारे में फ्लटर प्रोजेक्ट्स
विचार योग्य बातें
जटिल थीम के लिए अतिरिक्त स्टाइलिंग की आवश्यकता हो सकती है
आधुनिक, सरल डिज़ाइन के लिए सबसे उपयुक्त
बटन-केंद्रित इंटरैक्शन तक सीमित
घनत्वपूर्ण फॉर्म लेआउट के लिए उपयुक्त नहीं
बहुत सारे उदाहरण के साथ प्रदर्शन प्रभाव
मूल README
संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।
Highly customizable island-style buttons known as Chiclet.
Support the Project
If you find this project useful and would like to support its development, you can donate using the following cryptocurrencies. We work on this project in our spare time alongside our full-time jobs, and even a small donation — as little as $1 — goes a long way in Iran and helps us dedicate more time to improving and maintaining it.
Chiclet provides you with highly customizable island-style buttons similar to those found in the popular language learning app Duolingo and Figma courses.
Getting started
In the dependencies: section of your pubspec.yaml, add the following line:
You can either not specify it, or write ChicletButtonTypes.roundedRectangle in front of the buttonType property. In either case, the result will be the same. Example:
You can find more examples in the /example/lib/main.dart directory.
Customizable Properties
ChicletButton and ChicletAnimatedButton:
padding,
width (If not provided, it will be the same as height),
height (default is 50),
minimumSize,
maximumSize,
isPressed (default is false),
buttonHeight (default is 4, and it applies in addition to the height),
borderRadius (default is 16),
buttonColor (default is shade.900 of ThemeData's primarySwatch, unless you provide the backgroundColor property, then it will be shade.900 of the backgroundColor property),
foregroundColor (default is Colors.white),
backgroundColor (default is ThemeData's primarySwatch),
disabledforegroundColor,
disabledbackgroundColor,
splashFactory (default is NoSplash.splashFactory),
buttonType (default is ChicletButtonTypes.roundedRectangle),
ChicletOutlinedButton and ChicletOutlinedAnimatedButton:
padding,
width (If not provided, it will be the same as height),
height (default is 50),
minimumSize,
maximumSize,
isPressed (default is false),
buttonHeight (default is 4, and it applies in addition to the height),
borderWidth (default is 2),
borderRadius (default is 16),
borderColor (default is Colors.grey),
buttonColor (default is Colors.grey),
foregroundColor (default is ThemeData's primarySwatch),
backgroundColor (default is Colors.white),
disabledborderColor (default is Theme.colorScheme.onSurface(0.12)),
disabledforegroundColor,
disabledbackgroundColor,
splashFactory (default is NoSplash.splashFactory),
buttonType (default is ChicletButtonTypes.roundedRectangle),
ChicletSegmentedButton:
padding
width
height
minimumSize,
maximumSize,
isPressed (default is false),
buttonHeight (default is 4, and it applies in addition to the height),
borderRadius (default is 16),
buttonColor (default is Colors.grey),
foregroundColor (default is ThemeData's primarySwatch),
backgroundColor (default is Colors.white),
disabledforegroundColor,
disabledbackgroundColor,
splashFactory (default is NoSplash.splashFactory),
buttonType (default is ChicletButtonTypes.roundedRectangle),
ChicletButtonSegment (Intended to be used only as ChicletSegmentedButton's child):
padding
width
isPressed (default is false),
buttonColor (default is Colors.grey),
foregroundColor (default is ThemeData's primarySwatch),
backgroundColor (default is Colors.white),
disabledforegroundColor,
disabledbackgroundColor,
[!NOTE]
When using Material 3, providing the primarySwatch doesn't affect the color properties. You should consider providing either colorScheme or ColorSchemeSeed.
Additional information
Suggestions, recommendations, bug reports, and issues:
DevRedStone