Is there a way to set a tooltip
on a Text
widget:
new Text(
"Some content",
tooltip: "Displays a message to you"
)
This does not work. However it does work, as mentioned here, on things like the FloatingActionButton
:
new FloatingActionButton(
onPressed: action,
tooltip: "Action",
child: new Icon(Icons.add),
)
I understand that the Text
class does simply not have tooltip
implemented. I want to know if there is a way to do it anyway.
You can wrap your text into a Tooltip
widget.
new Tooltip(message: "Hello World", child: new Text("foo"));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With