{"id":1159,"date":"2023-03-16T22:19:21","date_gmt":"2023-03-16T14:19:21","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1159"},"modified":"2023-03-16T22:19:52","modified_gmt":"2023-03-16T14:19:52","slug":"flutter-widget-tooltip","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/16\/flutter-widget-tooltip\/","title":{"rendered":"Flutter Widget\u4e4bTooltip"},"content":{"rendered":"<p>Widget\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/flutter.io\/docs\/development\/ui\/widgets\">https:\/\/flutter.io\/docs\/development\/ui\/widgets<\/a><br \/>\nTooltip\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/docs.flutter.io\/flutter\/material\/Tooltip-class.html\">https:\/\/docs.flutter.io\/flutter\/material\/Tooltip-class.html<\/a><br \/>\n\u00a0 \u00a0 \u00a0 <\/p>\n<p><!-- more --><\/p>\n<pre><code class=\"language-dart\">import &#039;package:flutter\/material.dart&#039;;\n\nclass TooltipDemoPage extends StatefulWidget {\n  @override\n  State&lt;StatefulWidget&gt; createState() =&gt; new _TooltipDemoPagePageState();\n}\n\nclass _TooltipDemoPagePageState extends State&lt;TooltipDemoPage&gt; {\n  @override\n  void initState() {\n    super.initState();\n  }\n\n  Widget build(BuildContext context) {\n    return Scaffold(\n        appBar: new AppBar(\n          title: new Text(&#039;Tooltip Demo&#039;),\n        ),\n        body: Center(\n          child: Tooltip(\n            message: &quot;\u70b9\u51fb\u5220\u9664&quot;,\n            child: Icon(\n              Icons.delete,\n              size: 50.0,\n            ),\n            preferBelow: false,\n          ),\n        ),\n    );\n  }\n}<\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/www.yezhou.me\/AppBlog\/images\/Flutter\/Flutter_Widget_Tooltip.png\" alt=\"Flutter Widget Tooltip\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Widget\uff1ahttps:\/\/flutter.io\/docs\/development\/ui\/widgets T [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38],"tags":[305],"class_list":["post-1159","post","type-post","status-publish","format-standard","hentry","category-flutter","tag-flutter-widget"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1159","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1159"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1159\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1159"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}