ratingbarwidget 0.0.1 copy "ratingbarwidget: ^0.0.1" to clipboard
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
20
pub points
0%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on ratingbarwidget