{"id":1474,"date":"2024-05-22T15:27:12","date_gmt":"2024-05-22T07:27:12","guid":{"rendered":"https:\/\/log.tanxiaodian.com\/?p=1474"},"modified":"2024-05-22T15:27:12","modified_gmt":"2024-05-22T07:27:12","slug":"flutter_%e8%be%93%e5%85%a5%e6%a1%86%e8%bf%9e%e6%8e%a5%e5%a4%96%e9%83%a8%e6%89%ab%e6%8f%8f%e8%ae%be%e5%a4%87-%e8%99%9a%e6%8b%9f%e9%94%ae%e7%9b%98%e5%bc%b9%e8%b5%b7%e9%97%ae%e9%a2%98%e5%a4%84%e7%90%86","status":"publish","type":"post","link":"https:\/\/log.tanxiaodian.com\/?p=1474","title":{"rendered":"Flutter_\u8f93\u5165\u6846\u8fde\u63a5\u5916\u90e8\u626b\u63cf\u8bbe\u5907 \u865a\u62df\u952e\u76d8\u5f39\u8d77\u95ee\u9898\u5904\u7406"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>child: KeyboardListener(\r\n                      focusNode: _focusNode,\r\n                      onKeyEvent: (KeyEvent event) {\r\n                        if (event.runtimeType == KeyDownEvent) {\r\n                          scanerIn += event.character.toString();\r\n                          if (event.logicalKey.keyLabel == 'Enter') {\r\n                            print(\"laststr:\" + scanerIn);\r\n                            scanerIn = '';\r\n                          }\r\n                        }\r\n                      },\r\n                      child: TextFormField(\r\n                        controller: _controllerGoodsTitle,\r\n                        showCursor: true,\r\n                        readOnly: true,\r\n                        maxLength: 50,\r\n                        maxLines: 2, \/\/ \u6700\u5927\u884c\u6570\u4e3a5\r\n                        cursorColor: Colors.pink,\r\n                        onEditingComplete: () {},\r\n                        decoration: const InputDecoration(\r\n                          hintText: '\u8bf7\u8f93\u5165\u6807\u9898',\r\n                          border: OutlineInputBorder(\r\n                            borderSide: BorderSide(\r\n                              style: BorderStyle.none,\r\n                            ),\r\n                          ),\r\n                          focusedBorder: OutlineInputBorder(\r\n                            borderSide: BorderSide(color: Colors.pink),\r\n                            borderRadius:\r\n                                BorderRadius.all(Radius.circular(16.0)),\r\n                          ),\r\n                          focusColor: Colors.pink,\r\n                        ),\r\n                      ),\r\n                    ),<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[133],"tags":[266,267],"_links":{"self":[{"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/posts\/1474"}],"collection":[{"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1474"}],"version-history":[{"count":1,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/posts\/1474\/revisions"}],"predecessor-version":[{"id":1475,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/posts\/1474\/revisions\/1475"}],"wp:attachment":[{"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}