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

套件詳情v0.1.7

nice_button

一個適用於 Android 和 IOS 的 Flutter 套件,可輕鬆為您的應用設計漂亮的按鈕。盡情享受吧!

近 30 天下載
81
喜歡數
63
Pub 分數
40

安裝套件

flutter pub add nice_button

套件介紹

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

Nice_Button 是一個 Flutter 套件,旨在簡化在 Android 和 iOS 上建立視覺上吸引人的按鈕。它提供了一個易於使用的介面,用於設計美觀且可自訂的按鈕,無需進行大量編碼。該套件內建動畫和樣式選項,讓開發者能快速有效地增強應用程式使用者介面。該套件支援順暢的過渡效果和現代化按鈕設計,非常適合追求精緻外觀的應用程式。對於需要快速原型設計或保持一致按鈕美學的專案尤為實用。

適用情境

  • 在移動應用中創建動畫按鈕
  • 透過時尚的按鈕設計提升UI
  • 互動式介面的快速原型設計
  • 透過視覺反饋提升使用者參與度
  • 在各個平台上添加一致的按鈕樣式

主要特色

  • 預建構的美觀按鈕範本
  • 平滑的動畫效果
  • 跨平台相容性(Android 與 iOS)
  • 透過屬性實現輕鬆自訂
  • 所需的設定最少

適合對象

  • 初學者 Flutter 開發者
  • 以使用者介面為導向的應用專案
  • 需要一致按鈕樣式的應用
  • 需要快速UI開發的原型
  • 注重視覺吸引力的專案

使用建議

  • 僅限按鈕特定功能
  • 不支援進階的手勢互動
  • 依賴外部設計選擇
  • 可能需要額外的樣式設定以應對複雜使用案例
  • 不適用於非按鈕類UI元件

原始 README

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

nice_button

pub package Donate

A Flutter package for Android and IOS to design nice buttons with no hassle in your app. Enjoy !

Installation

Add the following to pubspec.yaml

dependencies:
  ...
  nice_button: ^0.1.7

Usage Example

import nice_button.dart

import 'package:nice_button/nice_button.dart';
For normal buttons
NiceButton(
    width: 255,
    elevation: 8.0,
    radius: 52.0,
    text: "Login",
    background: yourColor,
    onPressed: () {
        print("hello");
        },
    ),
For mini buttons

Icon is required in this case

NiceButton(
    mini: true,
    icon: Icons.home,
    background: yourColor,
    onPressed: () {
        print("hello");
    },
    )
For gradient buttons
var firstColor = Color(0xff5b86e5), secondColor = Color(0xff36d1dc);

NiceButton(
    radius: 40,
    padding: const EdgeInsets.all(15),
    text: "Register",
    icon: Icons.account_box,
    gradientColors: [secondColor, firstColor],
    onPressed: () {},
    )

Package demo

Refer to example folder and the source code for more information.

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。