content: import 'package:flutter/material.dart';
  import 'package:t_store/common/widgets/images/t_rounded_image.dart';
  import 'package:t_store/common/widgets/texts/product_title_text.dart';
  import 'package:t_store/common/widgets/texts/t_brand_title_text_with_verified_icon.dart';
  import 'package:t_store/utils/constraints/colors.dart';
  import 'package:t_store/utils/constraints/image_strings.dart';
  import 'package:t_store/utils/constraints/sizes.dart';
  import 'package:t_store/utils/helpers/helper_functions.dart';
  
  class TCartItem extends StatelessWidget {
    const TCartItem({
      super.key,
    });
  
    @override
    Widget build(BuildContext context) {
      return Row(
        children: [
          ///image
          TRoundedImage(
            imageUrl: TImages.productImage1,
            width: 60,
            height: 60,
            backgroundColor: THelperFunctions.isDarkMode(context) ? TColors.darkGrey : TColors.light,
            padding: const EdgeInsets.all(TSizes.sm),
          ),
          const SizedBox(width: TSizes.spaceBtwItems),
  
          ///title,price & size
          Expanded(
            child: Column(
              mainAxisSize: MainAxisSize.min,
              crossAxisAlignment: CrossAxisAlignment.start,
              children: [
                const TBrandTitleWithVerifiedIcon(title: 'Nike'),
                const Flexible(child:  TProductTitleText(title: 'Black sports shoes', maxLines: 1)),
                ///attributes
                Text.rich(
                    TextSpan(
                        children: [
                          TextSpan(text: 'Color ', style: Theme.of(context).textTheme.bodySmall),
                          TextSpan(text: 'Green ', style: Theme.of(context).textTheme.bodyLarge),
                          TextSpan(text: 'Size ', style: Theme.of(context).textTheme.bodySmall),
                          TextSpan(text: 'UK 38', style: Theme.of(context).textTheme.bodyLarge),
                        ]
                    )
                )
              ],
            ),
          )
        ],
      );
    }
  }