Chiclet bietet Ihnen hochgradig anpassbare Insel-artige Buttons, ähnlich denen, die man in der beliebten Sprachlern-App Duolingo und Figma-Kursen findet.
Aus öffentlichen Paketdaten erstellte Orientierung.
Chiclet ist ein Flutter-Paket, das anpassbare Insel-artige Buttons bietet, inspiriert von Duolingo und Figma-Kursen. Diese Buttons verfügen über abgerundete, schwebende Designs mit sanften Animationen und visuellen Rückmeldungen – ideal für interaktive Benutzeroberflächen. Entwickler können ihre Erscheinung, Größe und Funktionsweise problemlos an die Ästhetik der App anpassen. Das Paket unterstützt mehrere Plattformen und sorgt für konsistente Stilgestaltung auf Android, iOS, Web, macOS, Windows und Linux. Besonders nützlich in Bildungs-Apps, Onboarding-Flows und gamifizierten Interfaces, wo ansprechende Button-Interaktionen die Benutzererfahrung verbessern.
Anwendungsfälle
gamifizierte Lern-Apps
Onboarding-Bildschirme
Interaktive Tutorials
Lern-UIs
mobile-first Design-Systeme
Hauptmerkmale
Insel-artiges Button-Design
Hochgradig anpassbare Erscheinung
Glatte Animationen
Plattformübergreifende Unterstützung
Eingebauter Touch-Feedback
responsive Größenanpassung
Geeignet für
Entwickler von Bildungs-Apps
UI-Designer, die spielerische Elemente suchen
Apps mit Onboarding-Flows
Gamifizierte Erlebnisse
Flutter-Projekte, die auf visuelle Aufwertung achten
Hinweise
Kann zusätzliche Stilisierung für komplexe Themen erfordern
Am besten geeignet für moderne, minimalistische Designs
Beschränkt auf buttonzentrierte Interaktionen
Nicht ideal für dichte Formularlayouts
Leistungseinfluss bei vielen Instanzen
Original-README
Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.
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