mirrored_repositories/Flutter-Delivery-App/lib
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:meli_melo/widgets/small_text.dart';

import '../utils/colors.dart';
import '../utils/dimensions.dart';
import 'big_text.dart';
import 'icon_and_text_widget.dart';

class AppColumn extends StatelessWidget {
  final String text;
  const AppColumn({ Key? key, required this.text }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Column(
      crossAxisAlignment: CrossAxisAlignment.start, // pointe les elements au debut
      children: [
        BigText(text:text, size : Dimensions.font26),
        SizedBox(height:Dimensions.height10),
        Row(
            children: [
              Wrap(
                children: List.generate(5, (index) { return Icon(Icons.star, color:AppColors.mainColor, size: 15);}),
              ),
              SizedBox(width: 10),
              SmallText(text: "4.5"),
              SizedBox(width: 10),
              SmallText(text: "20"),
              SizedBox(width: 5),
              SmallText(text: "comments")
            ]
        ),
        SizedBox(height: Dimensions.height20,),
        //TIME AND DISTANCE
        Row(
          mainAxisAlignment: MainAxisAlignment.spaceBetween,
          children: [
            IconAndTextWidget(icon: Icons.circle_sharp,
                text: "Normal",

                iconColor : AppColors.iconColor1),
            IconAndTextWidget(icon: Icons.location_on,
                text: "1.7km",

                iconColor : AppColors.mainColor),
            IconAndTextWidget(icon: Icons.access_time_filled_rounded,
                text: "32min",

                iconColor : AppColors.iconColor2)
          ],
        )
      ],
    );
  }
}