mirrored_repositories/food_ring/lib/widgets
// ignore_for_file: non_constant_identifier_names, file_names

import 'package:flutter/material.dart';
import 'package:food_ring/configurations/AppColors.dart';
import 'package:food_ring/configurations/Dimensions.dart';
import 'package:food_ring/widgets/general/BigText.dart';
import 'package:food_ring/widgets/general/SmallText.dart';

class ReviewWidget extends StatelessWidget {

  final String Name;
  final String TimeStamp;
  final String Review;
  final double stars;

  

  const ReviewWidget({super.key, required this.Name, required this.Review, required this.stars, required this.TimeStamp});


@override
  Widget build(BuildContext context) {
    return Container(
      
      padding: EdgeInsets.all(Dimensions.height15),
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          Row(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: [
              Column(
crossAxisAlignment: CrossAxisAlignment.start,
children:[
BigText(text: Name),
SmallText(text: TimeStamp),

]
              ),
              Column(
                children: [
                  Row(
                    children: [
              Icon(Icons.star, size: Dimensions.font15,color: AppColors.mainColor),
              SizedBox(width: Dimensions.width5,),
              SmallText(text: stars.toString(), color: AppColors.mainColor,size: Dimensions.font15),
                    ],
                  )
                 
              ],
              )
            ],
          ),
          
          // Row(
          //   children: [
          //     Icon(Icons.star),
          //     SmallText(text: stars.toString()+' Stars', color: AppColors.mainColor,size: Dimensions.font15,),
          //   ]),
          SizedBox(height: Dimensions.height10,),
          SmallText(text: Review),
          SizedBox(height: Dimensions.height15,),
           const Divider(
            height: 1,
            thickness: 1,
      //      indent:1,
           // endIndent: 0,
            color: Color.fromARGB(255, 221, 221, 221),
          ),
        ],
      ),
    );
  }
}