mirrored_repositories/movie_app/lib/pages/detail
import 'package:flutter/material.dart';
import 'package:movieapp/model/movie_model.dart';
import 'package:rating_bar/rating_bar.dart';

class RaringBar extends StatelessWidget {
  final Movie movie;

  const RaringBar({Key key, this.movie}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return  RatingBar.readOnly(
      initialRating: movie.rating,
      isHalfAllowed: true,
      filledColor: Colors.red,
      halfFilledIcon: Icons.star_half,
      filledIcon: Icons.star,
      emptyIcon: Icons.star_border,
    );
  }
}
