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

rating_dialog 封面
套件詳情v2.0.4

rating_dialog

一個美觀且可自訂的星評對話框 Flutter 套件

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
2110
喜歡數
250
Pub 分數
150

安裝套件

flutter pub add rating_dialog

套件介紹

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

一個視覺上吸引人且高度可客製化的星評對話框,適用於Flutter應用。它讓開發者能夠輕鬆地將精緻的評分提示整合到他們的應用中,讓使用者透過直觀的星星選擇來提供反饋。此對話框支援顏色、圖示、文字與版面的自訂,確保與應用主題無縫整合。可在所有主要平台使用,透過在關鍵時機提示評分來提升使用者參與度。非常適合以非侵入性方式收集使用者反饋。

適用情境

  • 收集應用使用後的用戶反饋
  • 任務完成後提示評分
  • 透過互動式對話提升使用者參與度
  • 在移動和網頁應用中整合反饋收集
  • 自定義評分 UI 以符合應用品牌

主要特色

  • 可自定的星形外觀和顏色
  • 可設定的對話方塊標題和描述
  • 對多個平台的支援
  • 透過 pub.dev 輕鬆整合
  • 跨裝置的響應式設計
  • 處理用戶評分提交的選項

適合對象

  • 行動和網頁應用開發者
  • 尋求使用者反饋的應用程式
  • 需要精緻使用者介面元件的專案
  • 希望設置最少的開發者
  • 專注於使用者體驗的團隊

使用建議

  • 可能需要額外的邏輯來保持評分持久性
  • 自定樣式可能需要平台特定的調整
  • 僅限星級評分
  • 無內建分析或資料追蹤
  • 依賴外部倉庫進行更新

原始 README

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

rating_dialog

A beautiful and customizable Rating Dialog package for Flutter! Supports all platforms that flutter supports!

Import the rating_dialog package

To use the rating_dialog plugin, follow the plugin installation instructions.

Use the package

Add the following import to your Dart code:

import 'package:rating_dialog/rating_dialog.dart';

We use the flutter's showDialog function to show our Rating Dialog

    final _dialog = RatingDialog(
      initialRating: 1.0,
      // your app's name?
      title: Text(
        'Rating Dialog',
        textAlign: TextAlign.center,
        style: const TextStyle(
          fontSize: 25,
          fontWeight: FontWeight.bold,
        ),
      ),
      // encourage your user to leave a high rating?
      message: Text(
        'Tap a star to set your rating. Add more description here if you want.',
        textAlign: TextAlign.center,
        style: const TextStyle(fontSize: 15),
      ),
      // your app's logo?
      image: const FlutterLogo(size: 100),
      submitButtonText: 'Submit',
      commentHint: 'Set your custom comment hint',
      onCancelled: () => print('cancelled'),
      onSubmitted: (response) {
        print('rating: ${response.rating}, comment: ${response.comment}');

        // TODO: add your own logic
        if (response.rating < 3.0) {
          // send their comments to your email or anywhere you wish
          // ask the user to contact you instead of leaving a bad review
        } else {
          _rateAndReviewApp();
        }
      },
    );

    // show the dialog
    showDialog(
      context: context,
      barrierDismissible: true, // set to false if you want to force a rating
      builder: (context) => _dialog,
    );

Example

See the example application source for a complete sample app using the rating_dialog package.

Issues and feedback

Please file issues to send feedback or report a bug. Thank you!

所屬分類

依賴

依賴清單 1 項

原始碼儲存庫

使用此套件的專案