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

nice_buttons 封面
套件詳情v0.0.3

nice_buttons

一個美觀、動畫流暢且可自訂的3D按鈕,適用於您的Flutter專案,內建進度指示器和出色的按壓動畫。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
90
喜歡數
64
Pub 分數
155

安裝套件

flutter pub add nice_buttons

套件介紹

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

Nice Buttons 是一個 Flutter 套件,提供視覺上吸引人、帶有平滑按壓動畫和整合進度指示器的動畫 3D 按鈕。專為現代應用程式介面設計,透過動態回饋和可自訂樣式提升使用者互動體驗。該按鈕支援 Android、iOS、Web、macOS、Windows 和 Linux 多個平台,非常適合跨平台專案。透過直覺的自訂選項,開發者可以輕鬆調整顏色、陰影和動畫行為,以符合其應用程式的設計語彙。

適用情境

  • 透過互動式3D按鈕增強使用者介面
  • 使用內建進度顯示載入狀態
  • 建立吸引人的行動呼籲元件
  • 改進表單和操作中的使用者回饋
  • 為移動和網路應用增添精緻細節

主要特色

  • 3D 動畫按鈕效果
  • 內建進度指示器
  • 可自訂的外觀與行為
  • 平滑的按壓動畫
  • 跨平台相容性
  • 透過 pub.dev 實現輕鬆整合

適合對象

  • 尋求吸引人使用者介面元件的Flutter開發者
  • 在互動過程中需要視覺反饋的專案
  • 追求現代、精緻設計的應用程式
  • 專注於使用者體驗提升的開發者
  • 建構多平台應用的團隊

使用建議

  • 在低階設備上可能需要效能調校
  • 自定義選項可能會稍微增加套件大小
  • 動畫複雜度若使用過度,可能會影響回應性
  • 最適合具有明確單一動作的按鈕
  • 不建議用於不需要動畫的簡單靜態按鈕

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

nice_buttons

nice_buttons a beautiful, animated, and customizable 3D button for your flutter project.

Platform Support
Android iOS Web MacOS Linux Windows
✅ ✅ ✅ ✅ ✅ ✅

Sample Image

Installation

Add it as a dependency in their pubspec.yaml:

dependencies:
  nice_buttons: ^0.0.3
Customizations
Attribute Type Default Description
startColor Color 0xFF2ec8ff The gradient start color
endColor Color 0xFF529fff The gradient end color
borderColor Color 0xFF3489e9 The color of the 3D border.
progressColor Color white The color of circular progress indicator, defaults to white
progressSize Double 20 The size of progress indicator circle, defaults to 20
gradientOrientation GradientOrientation Horizontal Orientation of the gradient defaults to Horizontal
borderThickness Double 5 The thickness of the 3D border, defaults to 5
height Double 60 Height of the button, defaults to 60
width Double 200 Width of the button defaults to 200, its useless if the stretch property is set to true
stretch bool true Whether to occupy the full available space in the parent, defaults to true
borderRadius Double 20 The border radius of the button, defaults to 20
progress bool false Whether the progress indicator is required or not, defaults to false
disabled bool false Disables the button, defaults to false
onTap Function(void Function() finish) Button tap handler with finish callback to reset the state of progress and animation when called, required*
child Widget Inner content for the button, required*
Usage
...
import 'package:nice_buttons/nice_buttons.dart';
...
NiceButtons(
  stretch: true,
  gradientOrientation: GradientOrientation.Horizontal,
  onTap: (finish) {
    print('On tap called');
  },
  child: Text(
    'Full Width',
    style: TextStyle(color: Colors.white, fontSize: 18),
  ),
);

Check example folder for more examples.

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。