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

套件詳情v0.1.2

splash_tap

點擊其子組件時會產生有趣的 splash 效果

近 30 天下載
30
喜歡數
15
Pub 分數
30

安裝套件

flutter pub add splash_tap

套件介紹

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

SplashTap 是一個 Flutter 套件,當使用者點擊其子組件時會產生吸引人的 Splash 效果。它透過加入動態視覺反饋來增強使用者互動,非常適合按鈕或互動元件。此效果平滑且可自訂,非常適合現代應用程式介面。該套件以效能為設計重點,能順暢整合至現有的 Flutter 專案中。此套件為開源,由 funwith.app 維護,原始碼可於 GitHub 上取得。

適用情境

  • 為按鈕新增視覺反饋
  • 增強應用中的觸控互動
  • 建立有趣的使用者介面元件
  • 提升行動應用程式中的使用者參與度
  • 設計互動式原型

主要特色

  • 點擊時的平滑啟動動畫
  • 可自訂的 splash 半徑和顏色
  • 可輕鬆整合至任何組件
  • 輕量且高效
  • 開源,公開倉儲

適合對象

  • 尋求互動效果的UI設計師
  • 開發引人入勝的行動應用程式之開發者
  • 原型設計互動螢幕
  • 注重使用者體驗的應用
  • Flutter 初學者探索動畫

使用建議

  • 有限的平台支援(未列出具體平台)
  • 可能需要調整以在低階設備上獲得最佳效能
  • 效果可能不適合極簡設計風格
  • 不適合用於注重可存取性的介面
  • 依賴於父組件的手勢處理

原始 README

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

Makes an interesting splash effect when tapping its child widget.

Getting Started

To use this plugin, add splash_tap as a dependency in your pubspec.yaml file.

The color can be set with the splashColor property. The splash size is dependent on the size of the child widget passed in - which is constrained by the minRadius and maxRadius parameters.

Example
import 'package:flutter/material.dart';  
import 'package:splash_tap/splash_tap.dart';  
  
void main() => runApp(MyApp());  
  
class MyApp extends StatelessWidget {  
  @override  
  Widget build(BuildContext context) {  
    return MaterialApp(  
      title: 'Splash Tap Demo',  
      theme: ThemeData(  
        primarySwatch: Colors.blue,  
      ),  
      home: SplashTapDemo(),  
    );  
  }  
}  
  
class SplashTapDemo extends StatelessWidget {  
  @override  
  Widget build(BuildContext context) {  
    return Scaffold(  
      body: Center(  
        child: Splash(  
          onTap: () {},  
          child: Text(  
            'Splash!',  
            style: TextStyle(fontSize: 32),  
          ),  
        ),  
      ),  
    );  
  }  
}  

所屬分類

原始碼儲存庫

使用此套件的專案