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
.
Implementation
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 Tooltip
in action.
👨💻Get the complete Source Code here 👉🏻: https://github.com/vijayinyoutube/tooltip
Other articles you may like.,
🟡 Change App Launcher Icon in Flutter
🔴 AnimatedContainer Widget in Flutter
Flutter Tutorials
If you want to know more about Flutter and various Widgets in Flutter…?🤓 Then visit my channel vijaycreations🚩
Thanks.,