-
Notifications
You must be signed in to change notification settings - Fork 16
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
[1696] Refactored Tooltip implementation #1834
base: main
Are you sure you want to change the base?
Conversation
import 'package:ensemble/framework/event.dart'; | ||
import 'package:ensemble/framework/extensions.dart'; | ||
import 'package:ensemble/framework/theme/theme_manager.dart'; | ||
import 'package:ensemble/widget/helpers/controllers.dart'; | ||
import 'package:flutter/foundation.dart'; | ||
import 'package:flutter/material.dart'; |
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.
why are we removing this, if aren't supporting this anymore, should we just add deprecated message.
PS: Ensemble react also has the Tooltip widget and is widely used in Atlas. Best case is we should create utils and support both. We don't want users to learn 2 languages for framework
CC: @kmahmood74
borderRadius = Utils.getBorderRadius(inputs['borderRadius'])?.getValue(); | ||
padding = Utils.optionalInsets(inputs['padding']); | ||
margin = Utils.optionalInsets(inputs['margin']); | ||
onTriggered = inputs['onTriggered'] != null ? |
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.
why onTriggered
is part of tooltip styles?
isn't is a action, shouldn't it be a property, instead of a style?
onTooltipTriggered
?
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.
actually instead of 3 new properties of tooltip, we should combine them in an map of 1 i.e tooltip
tooltip:
message:
onTriggered:
styles:
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.
updated
ticket: #1696
Once Approved will add schema and docs.
Example EDL is added in issue.
Docs: EnsembleUI/ensemble_docs#66
Schema: https://github.com/EnsembleUI/ensemble-web-studio/pull/1541
Recording:
https://github.com/user-attachments/assets/ba8eb279-424d-4c7e-9c00-d53a495a0c24