有没有办法tooltip在Text小部件上设置:
new Text(
"Some content",
tooltip: "Displays a message to you"
)
Run Code Online (Sandbox Code Playgroud)
这不起作用.但是,如下所述,它确实可以工作FloatingActionButton:
new FloatingActionButton(
onPressed: action,
tooltip: "Action",
child: new Icon(Icons.add),
)
Run Code Online (Sandbox Code Playgroud)
据我所知,Text班级确实没有tooltip实施.无论如何,我想知道是否有办法做到这一点.
Rém*_*let 20
您可以将文本包装到Tooltip窗口小部件中.
new Tooltip(message: "Hello World", child: new Text("foo"));
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5882 次 |
| 最近记录: |