カテゴリー・パッケージ・リポジトリを検索

animated_rating_stars のカバー
パッケージ詳細v1.0.1

animated_rating_stars

インタラクティブな星型ベースの評価に適した、非常にカスタマイズ可能なFlutterレーティングバーウィジェット。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
2160
いいね数
54
Pub ポイント
140

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

flutter pub add animated_rating_stars

パッケージ概要

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

滑らかなアニメーションを備えたインタラクティブな星型レーティング用のカスタマイズ可能なFlutterウィジェットです。アニメーション付きの星を使って視覚的に評価を選択でき、単一および連続評価モードをサポートしています。星のサイズ、色、間隔、アニメーション効果などをカスタマイズできるため、非常に柔軟です。複数のプラットフォームでフィードバックフォーム、レビュー、ユーザー評価に最適です。

用途

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

主な機能

  • スムーズなアニメーションスターディスプレイ
  • カスタマイズ可能な星の外観
  • 連続的および離散的評価のサポート
  • クロスプラットフォーム互換性
  • Flutterとの簡単な統合
  • カスタマイズ可能なタップ動作

適している対象

  • アプリ内のスコアウィジェット
  • インタラクティブフィードバックコンポーネント
  • モバイルおよびウェブアプリケーション
  • 視覚的魅力を求めるデザイナー
  • 軽量なソリューションを必要とする開発者

注意事項

  • 限定的な組み込み検証
  • 標準のスタイリングはボックス外にありません
  • レーティング状態の手動処理が必要です
  • 低価格端末ではアニメーションのパフォーマンスが異なる場合があります
  • 非スターレーティングタイプには適していません

元の README

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

Animated Rating Stars for Flutter

Package Version Package Downloads GitHub Stars GitHub Forks License

AnimatedRatingStars is a highly customizable animated rating bar widget for Flutter. It allows users to interactively provide ratings by tapping on stars. The package offers a wide range of customization options and is designed to be easy to integrate into your Flutter applications.

Demo

DEMO1 DEMO2 DEMO3

Features

  • Create animated rating bars with filled, half-filled, and empty stars.
  • Customize star colors, icons, sizes, and animation parameters.
  • Display the rating value and enable interactive tooltips for half-filled stars.
  • Supports both read-only and interactive modes.

Installation

To use this package, add animated_rating_stars as a dependency in your pubspec.yaml file:

dependencies:
  animated_rating_stars: ^1.0.1

Then, run flutter pub get to fetch the package.

Usage

Import the package in your Dart code:

import 'package:animated_rating_stars/animated_rating_stars.dart';

Now, you can use the AnimatedRatingStars widget in your Flutter app:

AnimatedRatingStars(
  initialRating: 3.5,
  minRating: 0.0,
  maxRating: 5.0,
  filledColor: Colors.amber,
  emptyColor: Colors.grey,
  filledIcon: Icons.star,
  halfFilledIcon: Icons.star_half,
  emptyIcon: Icons.star_border,
  onChanged: (double rating) {
    // Handle the rating change here
    print('Rating: $rating');
  },
  displayRatingValue: true,
  interactiveTooltips: true,
  customFilledIcon: Icons.star,
  customHalfFilledIcon: Icons.star_half,
  customEmptyIcon: Icons.star_border,
  starSize: 30.0,
  animationDuration: Duration(milliseconds: 300),
  animationCurve: Curves.easeInOut,
  readOnly: false,
)

Customize the properties according to your requirements. The onChanged callback is called when the rating changes.

For more examples and usage details, refer to the examples directory included with this package.

Customization

You can customize the appearance and behavior of the rating bar using the following properties:

  • initialRating: The initial rating value.
  • minRating: The minimum rating value.
  • maxRating: The maximum rating value.
  • filledColor: The color for filled stars.
  • emptyColor: The color for empty stars.
  • filledIcon: The icon used for filled stars.
  • halfFilledIcon: The icon used for half-filled stars.
  • emptyIcon: The icon used for empty stars.
  • displayRatingValue: Show or hide the rating value.
  • interactiveTooltips: Enable interactive tooltips for half-filled stars.
  • customFilledIcon: Use a custom icon for filled stars.
  • customHalfFilledIcon: Use a custom icon for half-filled stars.
  • customEmptyIcon: Use a custom icon for empty stars.
  • starSize: Set the size of each star.
  • animationDuration: Adjust the duration of the animation when the rating changes.
  • animationCurve: Define the animation curve for the rating change.
  • readOnly: Make the widget read-only.

Customization

Contributions and feedback are welcome! If you encounter any issues or have feature requests, please open an issue on GitHub.

License

This package is distributed under the MIT License. See LICENSE for details.

For more Flutter packages and development resources, visit pub.dev.

カテゴリー

依存関係

依存関係一覧 1 件

  • plugin_platform_interface^2.0.2

ソースリポジトリ

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