ratingbarwidget 0.0.1 icon indicating copy to clipboard operation
ratingbarwidget: ^0.0.1 copied to clipboard

A Flutter widget to display rating, or allow a user rate.

Rating Bar Widget #

A Flutter widget to display rating, or allow a user rate.

Getting Started #

To use this widget add 'rating_bar_widget' as a dependency in your pubspec.yaml file

Example #

    import 'package:flutter/material.dart';
    import 'package:package_tester/rating_bar.dart';

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

    class MyApp extends StatelessWidget {
      // This widget is the root of your application.
      @override
      Widget build(BuildContext context) {
        return MaterialApp(
          title: 'Flutter Demo',
          theme: ThemeData(
            primarySwatch: Colors.blue,
          ),
          home: Scaffold(
              body: Center(
                  child: RatingBar(
            ratingValue: 3,
            onChange: (val) {
              print(val);
            },
            isReadOnly: true,
          ))),
        );
      }
    }
0
likes
80
pub points
0%
popularity

Publisher

unverified uploader

A Flutter widget to display rating, or allow a user rate.

Homepage

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on ratingbarwidget