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

flutter_reaction_button 封面
套件詳情v3.0.0+3

flutter_reaction_button

Flutter Reaction Button 是一個可自訂的 Flutter 套件,可讓您輕鬆建立帶有反應表情符號的互動式按鈕,類似於 Facebook 的標誌性反應按鈕。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
166
喜歡數
316
Pub 分數
140

安裝套件

flutter pub add flutter_reaction_button

套件介紹

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

Flutter Reaction Button 是一個可自訂的套件,讓開發者能在 Flutter 應用中實作互動式表情反應按鈕,模擬 Facebook 等社群媒體平台流行的互動風格。它支援 Android、iOS、Web、macOS、Windows 與 Linux 多個平台。此套件允許輕鬆整合自訂表情符號、動畫及使用者互動的回呼處理。適用於訊息或內容分享應用中的讚、反應或回饋機制等社交功能。

適用情境

  • 社群媒體應用互動
  • 使用者反饋系統
  • 訊息應用反應按鈕
  • 內容互動功能
  • 互動式 UI 元素

主要特色

  • 可自訂的表情符號集
  • 流暢的動畫效果
  • 跨平台支援
  • 反應選擇的回調
  • 與現有使用者介面的輕鬆整合

適合對象

  • 開發社交應用的開發者
  • 尋求互動元件的UI設計師
  • 需要使用者參與功能的應用程式
  • 具有多平台部署的專案

使用建議

  • 可能會略微增加捆綁大小
  • 需要仔細選擇表情符號以符合上下文
  • 動畫效能於低階裝置上有所差異
  • 僅限表情符號反應

原始 README

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

pub package

Flutter reaction button

Flutter Reaction Button is a customizable Flutter package that allows you to easily create interactive buttons with reaction emojis, similar to Facebook's iconic reaction buttons.

Screenshot

App Screenshot

Installation

# pubspec.yaml
dependencies:
  flutter:
    sdk: flutter
  flutter_reaction_button: <last-version>

Usage

import 'package:flutter_reaction_button/flutter_reaction_button.dart';

ReactionButton<String>(
    onReactionChanged: (Reaction<String>? reaction) {
        debugPrint('Selected value: ${reaction?.value}');
    },
    reactions: <Reaction<String>>[
        Reaction<String>(
            value: 'like',
            icon: widget,
        ),
        Reaction<String>(
            value: 'love',
            icon: widget,
        ),
        ...
    ],
    initialReaction: Reaction<String>(
        value: 'like',
        icon: widget,
    ),
    selectedReaction: Reaction<String>(
        value: 'like_fill',
        icon: widget,
    ),
)

License

MIT License

Copyright (c) 2023 Abdelouahed Medjoudja

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

所屬分類

原始碼儲存庫

使用此套件的專案