AuthenticationForm constructor

const AuthenticationForm({
  1. Key? key,
  2. required TextEditingController emailController,
  3. required TextEditingController passwordController,
  4. required String successRoutePage,
  5. String btnText = 'Submit',
  6. Color btnColor = Colors.blue,
})

Implementation

const AuthenticationForm({
  super.key,
  required this.emailController,
  required this.passwordController,
  required this.successRoutePage,
  this.btnText = 'Submit', // Provide a default button text
  this.btnColor = Colors.blue, // Allow the button color to be null (optional)
});