Skip to content

Commit

Permalink
Merge pull request prajapatihet#106 from Dhruv80576/main
Browse files Browse the repository at this point in the history
Signup page issue resolved
  • Loading branch information
prajapatihet authored Oct 24, 2024
2 parents 86cfb42 + 36b14cc commit 6850322
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 6850322

Please sign in to comment.