-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Title: Refactor Tooltip Implementation in ensemble_react to Property-based Approach
Description:
We need to align ensemble_react's tooltip implementation with ensemble_flutter by moving from a widget-based to a property-based approach.
Current State:
- Tooltip is implemented as a wrapper widget
- This approach goes against Ensemble's core design philosophy so we changed the ensemble_flutter appraoch as well.
Required Changes:
-
Deprecation Steps:
- Mark existing TooltipWidget as deprecated
- Keep existing implementation temporarily for backward compatibility
-
New Implementation:
- Add tooltip properties to base widget schema and here is the ticket with Example EDL for new properties: Refactor Tooltip Implementation to Utilize Native Properties instead. ensemble#1696
And below are the properties we support right now
- Add tooltip properties to base widget schema and here is the ticket with Example EDL for new properties: Refactor Tooltip Implementation to Utilize Native Properties instead. ensemble#1696
TextStyle? textStyle;
double? verticalOffset;
bool? preferBelow;
Duration? waitDuration;
Duration? showDuration;
TooltipTriggerMode? triggerMode;
Color? backgroundColor;
BorderRadius? borderRadius;
EdgeInsets? padding;
EdgeInsets? margin;
EnsembleAction? onTriggered;
Color? borderColor;
int? borderWidth;
- Schema Updates:
- Remove TooltipWidget from schema validation
- Add new tooltip properties to all widget schemas
- Update documentation to reflect new approach
Referance Tickets:
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request