Giter Club home page Giter Club logo

flutter_star_rating's Introduction

flutter_star_rating package

alt text

Features

  • 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

Usage example

import 'package:flutter_star_rating/flutter_star_rating.dart'; 

SmoothStarRating(
    allowHalfRating: false,
    onChanged: (v) => setState(() => rating = v),
    count: 5,
    value: rating,
    size: 40.0,
    filledIcon: Icons.blur_off,
    halfIcon: 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)
onChanged(double rating)    -   Rating changed callback
count                       -   The maximum amount of stars
value                       -   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)
filledIcon                  -   Full Rated Icon
halfIcon                    -   Half Rated Icon
defaultIcon                 -   Default Rated Icon

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.