Skip to content

Commit

Permalink
Changed the Contact By PhoneNumber in register-screen.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
Nandiniar committed Sep 30, 2023
1 parent 248df50 commit 86b9435
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/views/screens/register_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class _RegisterScreenState extends ConsumerState<RegisterScreen> {
required String password,
required String fullName,
required String address,
required String contact,
required String PhoneNumber,
}) {
return CustomTextButton.gradient(
width: double.infinity,
Expand All @@ -105,7 +105,7 @@ class _RegisterScreenState extends ConsumerState<RegisterScreen> {
password: password,
fullName: fullName,
address: address,
contact: contact,
PhoneNumber: PhoneNumber,
);
}
},
Expand Down Expand Up @@ -170,15 +170,15 @@ class _RegisterScreenState extends ConsumerState<RegisterScreen> {
final cPasswordController = useTextEditingController(text: '');
final fullNameController = useTextEditingController(text: '');
final addressController = useTextEditingController(text: '');
final contactController = useTextEditingController(text: '');
final PhoneNumberController = useTextEditingController(text: '');

void onAuthStateAuthenticated(String? currentUserFullName) {
emailController.clear();
passwordController.clear();
fullNameController.clear();
addressController.clear();
cPasswordController.clear();
contactController.clear();
PhoneNumberController.clear();
_formHasData = false;
AppRouter.popUntilRoot();
}
Expand Down Expand Up @@ -220,7 +220,7 @@ class _RegisterScreenState extends ConsumerState<RegisterScreen> {
fullNameController: fullNameController,
emailController: emailController,
addressController: addressController,
contactController: contactController,
PhoneNumberController: contactController,
)
else
_PasswordDetailFields(
Expand Down Expand Up @@ -251,7 +251,7 @@ class _RegisterScreenState extends ConsumerState<RegisterScreen> {
password: passwordController.text,
fullName: fullNameController.text,
address: addressController.text,
contact: contactController.text,
PhoneNumber: PhoneNumber.text,
),
),
)
Expand All @@ -264,15 +264,15 @@ class _RegisterScreenState extends ConsumerState<RegisterScreen> {

class _UserDetailFields extends StatelessWidget {
final TextEditingController fullNameController;
final TextEditingController contactController;
final TextEditingController PhoneNumberController;
final TextEditingController addressController;
final TextEditingController emailController;

const _UserDetailFields({
required this.fullNameController,
required this.emailController,
required this.addressController,
required this.contactController,
required this.PhoneNumberController,
});

@override
Expand Down

0 comments on commit 86b9435

Please sign in to comment.