Posts

Showing posts with the label Rating_bar | Rating_bar in Flutter

Rating_bar | Rating_bar in Flutter

Image
A simple yet fully customizable rating bar for flutter which also include a rating bar  indicator, supporting any fraction of rating. Using Flutter Rating Bar  # Rating Bar can be used in three ways. Use this package as a library 1. Depend on it Add this to your package's pubspec.yaml file: dependencies: flutter_rating_bar: ^3.0.1+1 Import it Now in your Dart code, you can use: import 'package:flutter_rating_bar/flutter_rating_bar.dart' ; 1. First Way:  # Using itemBuilder import 'package:flutter/material.dart'; import 'package:flutter_rating_bar/flutter_rating_bar.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget {   @override   Widget build(BuildContext context) {       return MaterialApp(       title: 'Welcome to Flutter',       home: Scaffold(         appBar: AppBar(           title: Text('Welcome to Flutter'),         ),         body: Center(           chi