content: import 'package:flutter/material.dart';
  import 'package:get/get.dart';
  import 'package:iconsax/iconsax.dart';
  import 'package:t_store/common/widgets/appbar/appbar.dart';
  import 'package:t_store/features/authentication/controllers/forget_password/forget_password_controller.dart';
  import 'package:t_store/utils/constraints/sizes.dart';
  import 'package:t_store/utils/constraints/text_strings.dart';
  import 'package:t_store/utils/validators/validation.dart';
  
  class ForgetPassword extends StatelessWidget {
    const ForgetPassword({Key? key}) : super(key: key);
  
    @override
    Widget build(BuildContext context) {
      final controller = Get.put(ForgetPasswordController());
      return Scaffold(
        appBar: const TAppBar(),
        body: Padding(
          padding: const EdgeInsets.all(TSizes.defaultSpace),
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.start,
            children: [
              ///heading
              Text(TTexts.forgotPassword,
                  style: Theme.of(context).textTheme.headlineMedium),
              const SizedBox(height: TSizes.spaceBtwItems),
              Text(TTexts.forgotPasswordSubTitle,
                  style: Theme.of(context).textTheme.labelMedium),
              const SizedBox(height: TSizes.spaceBtwSections * 2),
  
              ///text field
              Form(
                key: controller.forgetPasswordFormKey,
                child: TextFormField(
                  controller: controller.email,
                  validator: TValidator.validateEmail,
                  decoration: const InputDecoration(
                      labelText: TTexts.email,
                      prefixIcon: Icon(Iconsax.direct_right)),
                ),
              ),
              const SizedBox(height: TSizes.spaceBtwSections),
  
              ///submit button
              SizedBox(
                  width: double.infinity,
                  child: ElevatedButton(onPressed: () => controller.sendPasswordResetEmail(),
                      child: const Text(TTexts.submit)))
            ],
          ),
        ),
      );
    }
  }
  