-
-
Notifications
You must be signed in to change notification settings - Fork 313
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
fix: Added a close button to the tooltip in Onboarding #4619
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #4619 +/- ##
===========================================
- Coverage 10.13% 10.13% -0.01%
===========================================
Files 299 299
Lines 15692 15695 +3
===========================================
Hits 1591 1591
- Misses 14101 14104 +3
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
Hi @sm-sayedi!
Not too bad, but please have a look at my comment.
@@ -149,30 +149,44 @@ class _KnowledgePanelPageTemplateState | |||
); | |||
|
|||
List<Widget> _buildHintPopup() { | |||
final Widget hintPopup = InkWell( | |||
final Widget hintPopup = Card( |
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.
We still need the whole tooltip to be closable by click. The cross icon is just to tell the user "btw you can close this tooltip" (but you can click anywhere).
Besides if you want an icon to be clickable, you're supposed to make it "big enough" (something like 48) and it would be too big for the tooltip.
Hi @monsieurtanuki,
I have updated my code according to your comment. |
InkWell( | ||
onTap: () { | ||
setState(() { | ||
_isHintDismissed = true; | ||
}); | ||
}, |
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.
We don't need that; there's already an InkWell
on top, isn't there?
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.
@monsieurtanuki You're right! I have updated the code.
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.
Thank you @sm-sayedi!
Looks good to me - except perhaps the color of the icon (I don't know how this is supposed to look in dark mode). Anyway I'm about to fix it.
packages/smooth_app/lib/pages/onboarding/knowledge_panel_page_template.dart
Outdated
Show resolved
Hide resolved
packages/smooth_app/lib/pages/onboarding/knowledge_panel_page_template.dart
Outdated
Show resolved
Hide resolved
@monsieurtanuki Thank you! I think it looks the same in the dark mode too. |
What
Screenshots
Fixes bug(s)
Part of