搜尋套件、儲存庫與 APP 分類

chiclet 封面
套件詳情v1.2.1

chiclet

Chiclet 為您提供高度可自訂的島嶼風格按鈕,類似於流行的語言學習應用 Duolingo 和 Figma 課程中的樣式。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
517
喜歡數
49
Pub 分數
140

安裝套件

flutter pub add chiclet

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

Chiclet 是一個 Flutter 套件,提供可自訂的島嶼風格按鈕,靈感來自 Duolingo 和 Figma 課程。這些按鈕具有圓潤的浮動設計,搭配順暢的動畫與視覺反饋,非常適合互動式介面。開發者可以輕鬆調整其外觀、大小與行為,以符合應用程式美學。該套件支援多個平台,確保在 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

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。