mirrored_repositories/FlutterFoodyBite/lib/view/pages/HomeFlow
import 'package:flutter/material.dart';
import 'package:foodybite/constants/values.dart';
import 'package:foodybite/models/data.dart';
import 'package:foodybite/view/widgets/app_bar.dart';
import 'package:foodybite/view/widgets/review_tile.dart';
import 'package:get/get.dart';

class ReviewRatingPage extends StatelessWidget {
  const ReviewRatingPage({
    @required this.showMyRatings,
  });

  final bool showMyRatings;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: MAppBar(
        title: Values.review_n_ratings.tr,
        appBar: AppBar(),
      ),
      body: SizedBox.expand(
        child: ListView.builder(
          itemCount: reviewList.length,
          itemBuilder: (_, index) => ReviewTile(
            isRestaurant: showMyRatings,
            review: reviewList[index],
          ),
        ),
      ),
    );
  }
}
