패키지, 저장소 및 앱 카테고리 검색

animated_rating_stars 표지
패키지 상세v1.0.1

animated_rating_stars

상호작용 가능한 별 기반 평가를 위한 매우 사용자 정의 가능한 Flutter 평점 바 위젯입니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
2천
좋아요
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

소스 저장소

이 패키지를 사용하는 프로젝트