搜索插件、代码仓与 APP 分类

chiclet 封面
插件详情v1.2.1

chiclet

Chiclet 为您提供高度可定制的岛屿风格按钮,类似于流行的语言学习应用 Duolingo 和 Figma 课程中的样式。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
517
喜欢数
49
Pub 分数
140

安装插件

flutter pub add chiclet

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

Chiclet 是一个 Flutter 包,提供可自定义的岛屿风格按钮,灵感来自 Duolingo 和 Figma 课程。这些按钮具有圆润的悬浮设计,搭配流畅的动画和视觉反馈,非常适合交互式 UI。开发者可以轻松调整其外观、大小和行为,以匹配应用的美学风格。该包支持多个平台,确保在 Android、iOS、Web、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.

  • BTC (Bitcoin): bc1qkxcvlvkrslx33g2kql45au438ua3qrvanangw2
  • ETH (Ethereum): 0x575ef94aea4aa5bdf5c74c6b47311768118ad7c7
  • TRX (Tron): TRXMXafCkQ1sND7f9rfUNVDWazR866GHwF
  • USDT (Tron): TRXMXafCkQ1sND7f9rfUNVDWazR866GHwF
  • Toncoin (Ton): UQBcgZhcrJ-Qd-MUol1SvCLSqZCWZ01efrJJh4SUsoBpGtJw

Features

Chiclet provides you with highly customizable island-style buttons similar to those found in the popular language learning app Duolingo and Figma courses.

Chiclet

Getting started

In the dependencies: section of your pubspec.yaml, add the following line:

dependencies:
  chiclet: <latest_version>

Usage

  1. Import Chiclet in your main.dart.
import 'package:chiclet/chiclet.dart';
  1. Basic implementation:
ChicletOutlinedAnimatedButton(
onPressed: () {},
child: const Icon(Icons.download_rounded),
),

Chiclet

Buttons List

  • ChicletButton
  • ChicletAnimatedButton
  • ChicletOutlinedButton
  • ChicletAnimatedOutlinedButton
  • ChicletSegmentedButton

Button Types

1. RoundedRectangle (default type):
  • 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:
    ChicletOutlinedAnimatedButton(
      onPressed: () {},
      child: const Icon(Icons.download_rounded),
    ),
    
    ChicletOutlinedAnimatedButton(
      onPressed: () {},
      buttonType: ChicletButtonTypes.roundedRectangle,
      child: const Icon(Icons.download_rounded),
    ),
    

Chiclet

2. Circle:
  • You can create a circle shaped button by writing ChicletButtonTypes.circle in front of the buttonType property. Example:
    ChicletOutlinedAnimatedButton(
      onPressed: () {},
      buttonType: ChicletButtonTypes.circle,
      child: const Icon(Icons.download_rounded),
    ),
    

Chiclet

3. Oval:
  • You can create an oval shaped button by writing ChicletButtonTypes.circle in front of the buttonType property. Example:
    ChicletOutlinedAnimatedButton(
      onPressed: () {},
      width: 65,
      buttonType: ChicletButtonTypes.oval,
      child: const Icon(Icons.download_rounded),
    ),
    

Chiclet

You can find more examples in the /example/lib/main.dart directory.

Chiclet

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

所属分类

源码仓库

使用此插件的项目

暂无相关数据。