Skip to content

Commit ee883eb

Browse files
authored
Merge pull request #273 from FlutterFlow/feature/dynamic-content-tooltip
Dynamic Content in Tooltip
2 parents 95a2e54 + 43b3f80 commit ee883eb

File tree

1 file changed

+30
-0
lines changed
  • docs/resources/ui/widgets/built-in-widgets

1 file changed

+30
-0
lines changed

docs/resources/ui/widgets/built-in-widgets/tooltip.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,36 @@ To achieve this, simply set the **Tooltip Type** to **Component** and select the
8383
</div>
8484
<p></p>
8585

86+
To display dynamic content in tooltips, you can create a wrapper component that accepts a [**WidgetBuilder**](../../components/widget-builder-parameters.md) as a parameter and use this component within the tooltip.
87+
88+
Here’s exactly how you do it:
89+
90+
<div style={{
91+
position: 'relative',
92+
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
93+
height: 0,
94+
width: '100%'}}>
95+
<iframe
96+
src="https://demo.arcade.software/vFDY8DNskFzGWKFFmlM4?embed&show_copy_link=true"
97+
title=""
98+
style={{
99+
position: 'absolute',
100+
top: 0,
101+
left: 0,
102+
width: '100%',
103+
height: '100%',
104+
colorScheme: 'light'
105+
}}
106+
frameborder="0"
107+
loading="lazy"
108+
webkitAllowFullScreen
109+
mozAllowFullScreen
110+
allowFullScreen
111+
allow="clipboard-write">
112+
</iframe>
113+
</div>
114+
<p></p>
115+
86116
### Change trigger mode
87117

88118
On touch devices, the *Tooltip* opens on tap. To make it open on long press instead, use the **Trigger Mode** property.

0 commit comments

Comments
 (0)