Skip to content

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 :)

@ItsAdityaKSingh ItsAdityaKSingh requested a review from nb9960 March 7, 2022 14:59
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