How to install and use flutter_rating_bar with Flutter 3.10.5

A popular Flutter package with 1846 likes that support Flutter version 3.10.5 and above. Last version of the package was published on Jul 27, 2023.

Installing flutter_rating_bar

You can either add the package directly using the flutter command line.

$ flutter pub add flutter_rating_bar

Or add the dependency directly to your pubspec.yaml file.
dependencies:
  flutter_rating_bar: ^4.0.1

In either case, make sure to refresh your packages by running the following command:

$ flutter pub get

Using flutter_rating_bar

Once you have installed the package, you can use it in your Flutter application by importing it.
import 'package:flutter_rating_bar/flutter_rating_bar.dart';