パッケージ、リポジトリ、アプリカテゴリを検索

smooth_star_rating_null_safety のカバー
パッケージ詳細v1.0.4+2

smooth_star_rating_null_safety

スムーズなレーティングバー

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
12
いいね数
38
Pub ポイント
130

パッケージをインストール

flutter pub add smooth_star_rating_null_safety

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Flutter用のスムーズなレーティングバーウィジェットで、視覚的に魅力的でインタラクティブな星型ベースのレーティングシステムを提供します。null安全性に対応しており、Android、iOS、Web、macOS、Windows、Linuxなどすべてのプラットフォームで信頼性の高いパフォーマンスを確保します。カスタマイズ可能な星の外観、レーティング変更時のスムーズなアニメーション、インタラクティブモードおよび読み取り専用モードの両方をサポートしています。ユーザーフィードバックフォーム、製品レビュー、アプリ評価に最適です。シンプルなAPIにより、統合が簡単かつ効率的です。

用途

  • ユーザーのレビューとフィードバック
  • 製品評価システム
  • アプリレビューインターフェース
  • インタラクティブなフォーム要素
  • アンケートにおける評価の収集

主な機能

  • 評価変更時のスムーズなアニメーション
  • カスタマイズ可能な星のサイズと色
  • ヌルセーフな実装
  • インタラクティブモードとノンインタラクティブモードの両方をサポートしています
  • クロスプラットフォーム互換性

適している対象

  • フィードバックフォームを開発する開発者
  • 直感的な評価入力を必要とするアプリ
  • 複数のプラットフォームをターゲットにするプロジェクト
  • UI中心のアプリケーション
  • シンプルなウィジェットを探しているFlutter初心者

注意事項

  • レーティング値の更新を手動で処理する必要があります
  • スター評価に限定
  • 組み込みの検証なし
  • 単一の評価シナリオに最適
  • 複雑なUIには追加のスタイリングが必要になる場合があります

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

This is the null safety version of smooth_star_rating

All the credits go to the original authors,

You can find the original package here

https://pub.dev/packages/smooth_star_rating

A Star rating with touch and swipe rate enabled

  • Supports replacing default star icons with desired IconData
  • Supports half rate and full rate (1.0 or 0.5)
  • Swipe for incrementing/decrementing rate amount
  • Change star body and boundary colors independently
  • Control size of the star rating
  • Set your desired total Star count
  • Supports click-to-rate
  • Spacing between stars

Getting Started

In your flutter project add the dependency:

    dependencies:
        ...
        smooth_star_rating: 1.0.4+2

Usage example

import 'package:smooth_star_rating/smooth_star_rating.dart'; 
SmoothStarRating(
          allowHalfRating: false,
          onRatingChanged: (v) {
            rating = v;
            setState(() {});
          },
          starCount: 5,
          rating: rating,
          size: 40.0,
          filledIconData: Icons.blur_off,
          halfFilledIconData: Icons.blur_on,
          color: Colors.green,
          borderColor: Colors.green,
          spacing:0.0
        )

Constructor parameters

allowHalfRating                 -   Whether to use whole number for rating(1.0  or 0.5)
onRatingChanged(int rating)     -   Rating changed callback
starCount                       -   The maximum amount of stars
rating                          -   The current value of rating
size                            -   The size of a single star
color                           -   The body color of star
borderColor                     -   The border color of star
spacing                         -   Spacing between stars(default is 0.0)
filledIconData                  -   Full Rated Icon
halfFilledIconData              -   Half Rated Icon
defaultIconData                 -   Default Rated Icon
Screenshots
Full Rating

alt text

Half Rating

alt text

MIT LICENSE
Let me know if you find any bugs/issues.Thanks.

カテゴリー

ソースリポジトリ

このパッケージを使用しているプロジェクト