vijaycreations
Published in

vijaycreations

Tooltip Widget in Flutter

Tooltip widget in Flutter is used to provide additional when the user moves or points over a particular widget.

In the above example when we point over the snow icon we get the information stating snow icon.

Wrap any flutter widget using the Tooltip widget to avail this feature.

Tooltip
(
child:Container([...])
)

This Tooltip widget takes a list of parameters which are as follows.,

message       : <String>
child : <Widget>
waitDuration : <Duration>
showDuration : <Duration>
padding : <EdgeInsetsGeometry>
preferBelow : <Bool>
margin : <EdgeInsetsGeometry>
height : <Double>
textStyle : <TextStyle>
decoration : <Decoration>

In our case the code would look like.,

That’s it!!.🥳 Run the app to see Tooltipin action.

👨‍💻Get the complete Source Code here 👉🏻: https://github.com/vijayinyoutube/tooltip

--

--

A list of Flutter Tutorials and app templates

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Vijay R

Hai👋 I’m a flutter developer experienced in designing and developing stunning mobile apps. Reach out for freelance projects: vijaycreations02@gmail.com