mirrored_repositories/FoodieMania-Food-Delivery-App/lib
import 'package:flutter/material.dart';

class RatingStars extends StatelessWidget {
  final int? rating;

  const RatingStars(this.rating, {Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    String stars = '';
    for (int i = 0; i < rating!; i++) {
      stars += '⭐ ';
    }
    stars.trim();
    return Text(
      stars,
      style: const TextStyle(
        fontSize: 13.0
      ),
    );
  }
}
