content: import 'package:flutter/material.dart';
  import 'package:t_store/common/styles/spacing_styles.dart';
  import 'package:t_store/utils/constraints/sizes.dart';
  import 'package:t_store/utils/constraints/text_strings.dart';
  import 'package:t_store/utils/helpers/helper_functions.dart';
  
  class SuccessScreen extends StatelessWidget {
    const SuccessScreen({Key? key, required this.image, required this.title, required this.subTitle, required this.onPressed}) : super(key: key);
  
    final String image, title, subTitle;
    final VoidCallback onPressed;
  
    @override
    Widget build(BuildContext context) {
      return Scaffold(
        body: SingleChildScrollView(
          child: Padding(
            padding: TSpacingStyle.paddingWithAppBarHeight * 2,
            child: Column(
              children: [
                ///Image
                Image(
                  image: AssetImage(image),
                  width: THelperFunctions.screenWidth() * 0.6,
                ),
                const SizedBox(height: TSizes.spaceBtwSections),
  
                ///Title & Subtitle
                Text(title,
                    style: Theme.of(context).textTheme.headlineMedium,
                    textAlign: TextAlign.center),
                const SizedBox(height: TSizes.spaceBtwItems),
                Text(subTitle,
                    style: Theme.of(context).textTheme.labelMedium,
                    textAlign: TextAlign.center),
                const SizedBox(height: TSizes.spaceBtwSections),
  
                ///buttons
                SizedBox(
                  width: double.infinity,
                  child: ElevatedButton(
                      onPressed: onPressed,
                      child: const Text(TTexts.tContinue)),
                ),
              ],
            ),
          ),
        ),
      );
    }
  }
  