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

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, 웹, macOS, Windows, Linux 등 모든 플랫폼에서 신뢰할 수 있는 성능을 보장합니다. 사용자 정의 가능한 별 모양, 평점 변경 시 부드러운 애니메이션, 상호작용 및 읽기 전용 모드를 모두 지원합니다. 사용자 피드백 양식, 제품 리뷰, 앱 평가에 이상적입니다. 깔끔한 API로 통합이 간단하고 효율적입니다.

사용 사례

  • 사용자 리뷰 및 피드백
  • 제품 평가 시스템
  • 앱 리뷰 인터페이스
  • 인터랙티브 폼 요소
  • 설문조사에서 평가 수집

주요 기능

  • 등급 변경 시 부드러운 애니메이션
  • 사용자 정의 가능한 별 크기 및 색상
  • 널 안전한 구현
  • 인터랙티브 및 비인터랙티브 모드를 모두 지원합니다
  • 크로스 플랫폼 호환성

적합한 대상

  • 피드백 양식을 개발하는 개발자
  • 직관적인 평가 입력이 필요한 앱
  • 다중 플랫폼을 대상으로 하는 프로젝트
  • 사용자 인터페이스 중심 애플리케이션
  • 간단한 위젯을 찾는 플러터 초보자

고려 사항

  • 등급 값 업데이트를 수동으로 처리해야 합니다
  • 별 기반 평가에 한정
  • 내장된 검증 없음
  • 단일 평가 시나리오에 가장 적합
  • 복잡한 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.

카테고리

소스 저장소

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