Skip to content

Commit

Permalink
Signup page issue resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhruv80576 committed Oct 23, 2024
1 parent 86cfb42 commit 36b14cc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/views/pages/camps/campsPage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ class _Camps extends State<Camps> with SingleTickerProviderStateMixin {

Position position = await Geolocator.getCurrentPosition(
desiredAccuracy: LocationAccuracy.high);
setState(() {
_currentPosition = position;
});
// setState(() {
// _currentPosition = position;
// });
}

Future<void> _fetchDonationCamps() async {
Expand Down
7 changes: 7 additions & 0 deletions lib/views/pages/register/signup.dart
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,13 @@ class _SignuppageState extends State<Signuppage> {
listener: (context, state) {
if (state is AuthError) {
showSnackBar(context, state.message);
setState(() {
_isEmailValid = false;
_isNameValid = false;
_isPhoneValid = false;
_isPasswordValid = false;
_isConfirmPasswordValid = false;
});
}
if (state is Authenticated) {
Navigator.pushReplacement(
Expand Down

0 comments on commit 36b14cc

Please sign in to comment.