rate_in_stars 0.0.3 copy "rate_in_stars: ^0.0.3" to clipboard
rate_in_stars: ^0.0.3 copied to clipboard

A Flutter package to rate items in stars. The stars can be editable if the user inputs the rating, or non editable if you only want to display the rating to the user. The stars colour and size can be [...]

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:rate_in_stars/rate_in_stars.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        title: 'Flutter Demo',
        theme: ThemeData(
          primarySwatch: Colors.blue,
        ),
        // RatingStars(rating: 3.5, editable: false) - to display the rating without editing
        home: RatingStars(
          rating: 3.5,
          editable: true,
          iconSize: 28,
          color: Colors.green,
        ));
  }
}
19
likes
120
pub points
82%
popularity

Publisher

unverified uploader

A Flutter package to rate items in stars. The stars can be editable if the user inputs the rating, or non editable if you only want to display the rating to the user. The stars colour and size can be modified. Use this package to let your app users know the rating of an item. Simple and straightforward to use. Supports rating in decimals for fine control of the data.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter, flutter_hooks

More

Packages that depend on rate_in_stars