When I test the app, it says both mail and password are incorrect, even though I only entered the mail part incorrectly

class LoginScreen extends StatefulWidget {
  const LoginScreen({super.key});

  @override
  State<LoginScreen> createState() => _LoginScreenState();
}

class _LoginScreenState extends State<LoginScreen> {
  /* -- login screen text controllers -- */
  final emailController = TextEditingController();
  final passwordController = TextEditingController();
  /* -- login screen text controllers -- */

  /* -- login user in method -- */
  void loginUser() async {
  try {
    await FirebaseAuth.instance.signInWithEmailAndPassword(
      email: emailController.text,
      password: passwordController.text,
    );
  } on FirebaseAuthException catch (e) {
    if (e.code == 'user-not-found' || e.code == 'invalid-email') {
      ScaffoldMessenger.of(context).showSnackBar(
        SnackBar(
          backgroundColor: Theme.of(context).colorScheme.secondary,
          content: Text(
            tEmailIncorrect,
            style: Theme.of(context).textTheme.bodyText1,
          ),
        ),
      );
    } else if (e.code == 'wrong-password') {
      ScaffoldMessenger.of(context).showSnackBar(
        SnackBar(
          backgroundColor: Theme.of(context).colorScheme.secondary,
          content: Text(
            tPasswordIncorrect,
            style: Theme.of(context).textTheme.bodyText1,
          ),
        ),
      );
    } else {
      ScaffoldMessenger.of(context).showSnackBar(
        SnackBar(
          backgroundColor: Theme.of(context).colorScheme.secondary,
          content: Text(
            tEmailAndPasswordIncorrect, // Use the generic error message here
            style: Theme.of(context).textTheme.bodyText1,
          ),
        ),
      );
    }
  }
}
  /* -- login user in method -- */

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      /* -- Body -- */
      body: SafeArea(
        child: Center(
          child: SingleChildScrollView(
            child: Column(
              mainAxisAlignment: MainAxisAlignment.center,
              children: [
                const SizedBox(
                  height: 50.0,
                ),

                /* -- Logo -- */
                Icon(
                  CupertinoIcons.lock_fill,
                  color: Theme.of(context).iconTheme.color,
                  size: 100.0,
                ),
                /* -- Logo -- */

                const SizedBox(
                  height: 50.0,
                ),

                /* -- Welcome back, you have been missed -- */
                Text(
                  tWelcomeBackYouHaveBeenMissed,
                  style: Theme.of(context).textTheme.bodyText1,
                ),
                /* -- Welcome back, you have been missed -- */

                const SizedBox(
                  height: 25.0,
                ),

                /* -- Username textformfield -- */
                MyTextFormField(
                  controller: emailController,
                  hintText: tEmail,
                  obscureText: false,
                ),
                /* -- Username textformfield -- */

                const SizedBox(
                  height: 10.0,
                ),

                /* -- Password textformfield -- */
                MyTextFormField(
                  controller: passwordController,
                  hintText: tPassword,
                  obscureText: true,
                ),
                /* -- Password textformfield -- */

                const SizedBox(
                  height: 10.0,
                ),

                /* -- Forgot password -- */
                Padding(
                  padding: const EdgeInsets.symmetric(horizontal: 25.0),
                  child: Row(
                    mainAxisAlignment: MainAxisAlignment.end,
                    children: [
                      Text(
                        tForgotPassword,
                        style: TextStyle(
                          color: Theme.of(context).textTheme.bodyText1!.color,
                          fontWeight: FontWeight.bold,
                        ),
                      ),
                    ],
                  ),
                ),
                /* -- Forgot password -- */

                const SizedBox(
                  height: 25.0,
                ),

                /* -- Login button -- */
                MyCustomButton(
                  buttonBackgroundColor: cBlueColor,
                  buttonText: tLogin,
                  buttonTextColor: cWhiteTextColor,
                  onTap: loginUser,
                ),
                /* -- Login button -- */

                const SizedBox(
                  height: 50.0,
                ),

                /* -- Or continue with -- */
                Padding(
                  padding: const EdgeInsets.symmetric(horizontal: 25.0),
                  child: Row(
                    children: [
                      const Expanded(
                        child: Divider(),
                      ),
                      Padding(
                        padding: const EdgeInsets.symmetric(horizontal: 10.0),
                        child: Text(
                          tOrContinueWith,
                          style: Theme.of(context).textTheme.bodyText1,
                        ),
                      ),
                      const Expanded(
                        child: Divider(),
                      ),
                    ],
                  ),
                ),
                /* -- Or continue with -- */

                const SizedBox(
                  height: 25.0,
                ),

                /* -- Google + facebook + apple + twitter login buttons -- */
                const Row(
                  mainAxisAlignment: MainAxisAlignment.center,
                  children: [
                    // google
                    SquareTile(imagePath: iGoogleLogoImage),

                    SizedBox(
                      width: 10.0,
                    ),

                    // facebook
                    SquareTile(imagePath: iFacebookLogoImage),

                    SizedBox(
                      width: 10.0,
                    ),

                    // apple
                    SquareTile(imagePath: iAppleLogoImage),

                    SizedBox(
                      width: 10.0,
                    ),

                    // x
                    SquareTile(imagePath: iXLogoImage),
                  ],
                ),
                /* -- Google + facebook + apple + twitter login buttons -- */

                const SizedBox(
                  height: 50.0,
                ),

                /* -- Don't you have an account? + register now text -- */
                Row(
                  mainAxisAlignment: MainAxisAlignment.center,
                  children: [
                    Text(
                      tDontYouHaveAnAccount,
                      style: Theme.of(context).textTheme.bodyText1,
                    ),
                    const SizedBox(
                      width: 10.0,
                    ),
                    Text(
                      tRegisterNow,
                      style: Theme.of(context).textTheme.headline5,
                    ),
                  ],
                ),
                /* -- Don't you have an account? + register now text -- */
              ],
            ),
          ),
        ),
      ),
      /* -- Body -- */
    );
  }
}

The problem I am facing is :

I have developed a user login form. However, even when only the email part is entered incorrectly, I get the message “both your email address and password are incorrect”. When the email is entered incorrectly, I want to get a message that only the email address is incorrect.

The solution I was waiting for:

When an e-mail address is entered incorrectly, the user should only be shown an error message that the e-mail address is incorrect. Similarly, if the password is entered incorrectly, only the password error message should be shown.

The event that took place :

Currently, the message “both your email address and password are incorrect” is shown, even when only the email is entered incorrectly.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật