-
Notifications
You must be signed in to change notification settings - Fork 13
Fix error banner alllign under appbar #670
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
Conversation
WalkthroughReplaces the relay-error floating overlay with an in-flow WnHeadsUp banner placed via SliverToBoxAdapter within the CustomScrollView. Removes the old Positioned overlay and placeholder spacer, adds an animate().fadeIn() on the banner, and preserves navigation to settingsNetwork via the banner action. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User
participant ChatList as ChatListScreen
participant Banner as WnHeadsUp (Sliver)
participant Nav as Navigator
User->>ChatList: Open screen
ChatList->>Banner: Render in sliver flow (fadeIn)
alt Relay error present
Banner-->>User: Show "Connect Relays" action
User->>Banner: Tap action
Banner->>Nav: push(settingsNetwork)
else No relay error
Note over ChatList: Banner not shown
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (1)**/*.dart📄 CodeRabbit inference engine (.cursor/rules/flutter.mdc)
Files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
josefinalliende
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How can I reproduce this error @codeswot ? I was trying by removing all the relays from one of the lists, then switched back to chat screen, wait for a long time but the error does not appear, so I can't see it now is aligned or not 😅
On iOS the alignment was fine, you got to test on iOS. You can negate the book flag that shows the error to see the banner and see the alignment. Then for me how I test the connection lost flow is I stop running the docker container completely and wait for 30 sec |
@josefinalliende you can just shutdown your local relays if you're running on the simulator and wait 30 seconds. |
josefinalliende
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It worked when running with local relays! 🎉
Description
Show Error banner directly under the app bar to avoid cutoff and to properly allign spacing
Type of Change
Checklist
just precommitto ensure that formatting and linting are correctjust check-flutter-coverageto ensure that flutter coverage rules are passingCHANGELOG.mdfile with your changes (if they affect the user experience)Summary by CodeRabbit
New Features
Style