Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Hikes immediately #83

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

ItsAdityaKSingh
Copy link
Collaborator

Fixes #82

Describe the changes you have made in this PR - Reduced a minute for creating hike immediately. Also changed a snack bar message

Note: Please check Allow edits from maintainers. if you would like us to assist in the PR.

Comment on lines 224 to 227
if (model.startsAt.isBefore(DateTime.now()
.subtract(Duration(minutes: 1)))) {
navigationService
.showSnackBar("Enter a valid date and time!");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of snack bar, I guess it would be better to add validations in the fields itself. When keyboard is on snackbar popups aren't displayed well.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok! So should I close the keyboard upon this error and then show snackbar or validate the field itself?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Validating fields would be better.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any progress? @ItsAdityaKSingh

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not quite! Got busy in academics. Gonna run through the required changes requested and update soon :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot create hike immediately
2 participants