Chiclet은 Duolingo와 Figma 강의에서 영감을 받은 사용자 정의 가능한 섬 스타일 버튼을 제공하는 플러터 패키지입니다. 이 버튼들은 둥근 부유형 디자인과 부드러운 애니메이션 및 시각적 피드백을 갖추고 있어 인터랙티브 UI에 이상적입니다. 개발자는 외관, 크기, 동작을 쉽게 조정하여 앱의 미학과 일치시킬 수 있습니다. 이 패키지는 Android, iOS, 웹, macOS, Windows, Linux 등 여러 플랫폼을 지원하며, 일관된 스타일링을 보장합니다. 특히 교육용 앱, 온보딩 흐름, 게임화 인터페이스에서 매력적인 버튼 상호작용이 사용자 경험을 향상시키므로 매우 유용합니다.
사용 사례
게임화 학습 앱
온보딩 화면
인터랙티브 튜토리얼
교육용 UI
모바일 우선 디자인 시스템
주요 기능
아일랜드 스타일 버튼 디자인
높은 사용자 정의 가능한 외관
부드러운 애니메이션
크로스 플랫폼 지원
내장 터치 피드백
반응형 크기
적합한 대상
교육 앱 개발자
재미있는 요소를 찾는 UI 디자이너
온보딩 흐름을 갖춘 앱
게임화 경험
시각적 완성도를 중시하는 Flutter 프로젝트
고려 사항
복잡한 테마에 맞추기 위해 추가적인 스타일링이 필요할 수 있습니다
현대적이고 미니멀한 디자인에 가장 적합
버튼 중심 상호작용에 제한됨
밀집된 폼 레이아웃에 적합하지 않음
많은 인스턴스로 인한 성능 영향
원본 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