content: import 'package:flutter/material.dart';
  import 'package:t_store/common/widgets/appbar/appbar.dart';
  import 'package:t_store/common/widgets/images/t_rounded_image.dart';
  import 'package:t_store/common/widgets/products/product_cards/product_card_horizontal.dart';
  import 'package:t_store/common/widgets/texts/section_heading.dart';
  import 'package:t_store/utils/constraints/image_strings.dart';
  import 'package:t_store/utils/constraints/sizes.dart';
  
  class SubCategoriesScreen extends StatelessWidget {
    const SubCategoriesScreen({Key? key}) : super(key: key);
  
    @override
    Widget build(BuildContext context) {
      return Scaffold(
        appBar: const TAppBar(title: Text('Sports'), showBackArrow: true),
        body: SingleChildScrollView(
          child: Padding(
            padding: const EdgeInsets.all(TSizes.defaultSpace),
            child: Column(
              children: [
                ///Banner
                const TRoundedImage(
                    imageUrl: TImages.promoBanner4,
                    width: double.infinity,
                    applyImageRadius: true),
                const SizedBox(height: TSizes.spaceBtwSections),
  
                ///sub categories
                Column(
                  children: [
                    ///heading
                    TSectionHeading(title: 'Sports shirts', onPressed: () {}),
                    const SizedBox(height: TSizes.spaceBtwItems / 2),
  
                    SizedBox(
                      height: 120,
                      child: ListView.separated(
                        itemCount: 4,
                          scrollDirection: Axis.horizontal,
                          separatorBuilder:  (context, index) => const SizedBox(width: TSizes.spaceBtwItems),
                          itemBuilder: (context, index) => const TProductCardHorizontal(),
                      ),
                    ),
                  ],
                )
              ],
            ),
          ),
        ),
      );
    }
  }
  