Skip to content

farmery/Rating-bar-widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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,
         ))),
       );
     }
   }

About

flutter rating bar widget

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages