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

Feat: In Notice Navigation #37

Merged

Conversation

pranavkonidena
Copy link
Member

@pranavkonidena pranavkonidena commented Mar 7, 2024

Closes #17

Type of Change

New feature addition

Technicalities of change

I have fixed the previous back swipe gesture by adding platform and changing the threshold for gesture detection. The flow is same as that of GMAIL app. When u swipe slightly to the left on IOS , you will be redirected back to list of notices. Also , while swiping in between notices , you will be navigating between notices. Have fixed the error log I received whilst in lab the other day. (Basically, just added a null check before assertion).

How it works in brief:

I have passed the listnoticesbloc from list to notice detail. Reason -> Need to have same member params. I couldn't make it static because we need to have instances of the entire thing. So, I just get the entire list of notices in each noticeDetail screen and get the current index of the notice detail using id (Simple for loop). Then, I use gesture detector for detecting swipe gestures and do the reqd. In init state of notice detail, I also check if currentIndex is the last in the list. Then I fetch more notices and continue on. Additionally , if the user is already on the first notice and does a left swipe, a snackbar is shown saying the user is already on the first notice.

Demo

VIDEO-2024-03-07-15-20-14.mp4

@pranavkonidena pranavkonidena requested a review from justary27 March 7, 2024 10:05
Copy link
Member

@justary27 justary27 left a comment

Choose a reason for hiding this comment

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

Fix the workflow issue, maybe by changing dart version constraint.

noticeboard/lib/global/global_constants.dart Outdated Show resolved Hide resolved
@justary27 justary27 merged commit 861dfb0 into IMGIITRoorkee:beta Mar 7, 2024
1 check failed
@justary27 justary27 mentioned this pull request Mar 7, 2024
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.

2 participants