{"id":12239,"date":"2022-06-24T10:00:00","date_gmt":"2022-06-24T01:00:00","guid":{"rendered":"https:\/\/www.gigas-jp.com\/appnews\/?p=12239"},"modified":"2022-06-23T19:03:11","modified_gmt":"2022-06-23T10:03:11","slug":"flutter-%e3%81%a7web_view%e3%82%92%e5%af%be%e5%bf%9c%e3%81%99%e3%82%8b%e3%81%ab%e3%81%af%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.gigas-jp.com\/appnews\/archives\/12239","title":{"rendered":"Flutter \u3067Web_view\u3092\u5bfe\u5fdc\u3059\u308b\u306b\u306f\uff1f"},"content":{"rendered":"\n<p>\u4eca\u56de\u306fFlutter\u306e\u4f7f\u3044\u65b9\u3092\u5171\u6709\u3057\u305f\u3044\u3068\u601d\u3044\u3001\u8a18\u4e8b\u66f8\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u30bf\u30a4\u30c8\u30eb\u3067\u66f8\u3044\u305f\u901a\u308a\u3001Web_view\u3092\u5229\u7528\u3059\u308b\u306b\u306fpubspec.yaml\u3067\u5c0e\u5165\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dependencies:\n  webview_flutter: ^3.0.4<\/code><\/pre>\n\n\n\n<p>Android\u958b\u767a\u306e\u5834\u5408\u3001\u300candroid &gt; app &gt; build.gradle\u300d\u3067\u3001SDK\u306e\u6700\u5c0f\u30d0\u30fc\u30b8\u30e7\u30f3\u309219\u4ee5\u4e0a\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>defaultConfig {\n  applicationId \"com.example.sample_app\"\n  minSdkVersion 21\n  targetSdkVersion 31\n  versionCode flutterVersionCode.toInteger()\n  versionName flutterVersionName\n}<\/code><\/pre>\n\n\n\n<p>initialURL \u306b\u8868\u793a\u3057\u305f\u3044url\u3092\u66f8\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u62e1\u5927\u3092\u6709\u52b9\u306b\u3057\u305f\u3044\u306a\u3089\u3001\u300czoomEnabled\u300d\u306b\u300ctrue\u300d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>WebView(\n    initialUrl: 'https:\/\/flutter.dev',\n    zoomEnabled: true,\n)<\/code><\/pre>\n\n\n\n<p>Web\u30da\u30fc\u30b8\u306e\u30ed\u30fc\u30c7\u30a3\u30f3\u30b0\u958b\u59cb\u6642\u3001\u30ed\u30fc\u30c7\u30a3\u30f3\u30b0\u3092\u3072\u3087\u3046\u3058\u3057\u305f\u3044\u306a\u3089\u3001<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>onPageStarted: (url) {\n   setState(() {\n      _isLoading = true;\n    });\n},<\/code><\/pre>\n\n\n\n<p>Web\u30da\u30fc\u30b8\u304c\u65e2\u306b\u8868\u793a\u3055\u308c\u305f\u6642\u3001\u30ed\u30fc\u30c7\u30a3\u30f3\u30b0\u3092\u3072\u3087\u3046\u3058\u3092\u7d42\u308f\u308a\u51e6\u7406<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>onPageFinished: (url) {\n   setState(() {\n      _isLoading = false;\n    });\n},<\/code><\/pre>\n\n\n\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f\u3053\u308c\u3067\u7d42\u308f\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u91d1\u66dc\u62c5\u5f53 \u2013 Ami<\/p>\n<div class='wp_social_bookmarking_light'>\n            <div class=\"wsbl_google_plus_one\"><g:plusone size=\"medium\" annotation=\"none\" href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/12239\" ><\/g:plusone><\/div>\n            <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/https:\/\/www.gigas-jp.com\/appnews\/archives\/12239\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"Flutter \u3067Web_view\u3092\u5bfe\u5fdc\u3059\u308b\u306b\u306f\uff1f\" data-hatena-bookmark-layout=\"standard\" title=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\"> <img src=\"\/\/b.hatena.ne.jp\/images\/entry-button\/button-only@2x.png\" alt=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\" width=\"20\" height=\"20\" style=\"border: none;\" \/><\/a><script type=\"text\/javascript\" src=\"\/\/b.hatena.ne.jp\/js\/bookmark_button.js\" charset=\"utf-8\" async=\"async\"><\/script><\/div>\n            <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/12239\" data-text=\"Flutter \u3067Web_view\u3092\u5bfe\u5fdc\u3059\u308b\u306b\u306f\uff1f\" data-via=\"GIGASJAPAN_APPS\" data-lang=\"ja\">Tweet<\/a><\/div>\n            <div class=\"wsbl_facebook_like\"><div id=\"fb-root\"><\/div><fb:like href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/12239\" layout=\"button_count\" action=\"like\" width=\"100\" share=\"false\" show_faces=\"false\" ><\/fb:like><\/div>\n            <div class=\"wsbl_facebook_send\"><div id=\"fb-root\"><\/div><fb:send href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/12239\" colorscheme=\"light\" ><\/fb:send><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u56de\u306fFlutter\u306e\u4f7f\u3044\u65b9\u3092\u5171\u6709\u3057\u305f\u3044\u3068\u601d\u3044\u3001\u8a18\u4e8b\u66f8\u304d\u307e\u3057\u305f\u3002 \u30bf\u30a4\u30c8\u30eb\u3067\u66f8\u3044\u305f\u901a\u308a\u3001Web_view\u3092\u5229\u7528\u3059\u308b\u306b\u306fpubspec.yaml\u3067\u5c0e\u5165\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 Android\u958b\u767a\u306e\u5834\u5408\u3001\u300candroid &#038;gt [&hellip;]<\/p>\n","protected":false},"author":19,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[100],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/12239"}],"collection":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/comments?post=12239"}],"version-history":[{"count":4,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/12239\/revisions"}],"predecessor-version":[{"id":12247,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/12239\/revisions\/12247"}],"wp:attachment":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/media?parent=12239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/categories?post=12239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/tags?post=12239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}