<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Flutter アーカイブ - Sheltie&#039;s Garage</title>
	<atom:link href="https://sheltie-garage.xyz/category/%e6%8a%80%e8%a1%93%e7%b3%bb/flutter/feed/" rel="self" type="application/rss+xml" />
	<link>https://sheltie-garage.xyz/category/技術系/flutter/</link>
	<description>趣味に生きる</description>
	<lastBuildDate>Mon, 13 Jan 2020 13:29:43 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>

<image>
	<url>https://sheltie-garage.xyz/wp-content/uploads/2018/04/cropped-L927xrpq-32x32.jpg</url>
	<title>Flutter アーカイブ - Sheltie&#039;s Garage</title>
	<link>https://sheltie-garage.xyz/category/技術系/flutter/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Flutter 最初のプロジェクトを作成</title>
		<link>https://sheltie-garage.xyz/2020/01/flutter-%e6%9c%80%e5%88%9d%e3%81%ae%e3%83%97%e3%83%ad%e3%82%b8%e3%82%a7%e3%82%af%e3%83%88%e3%82%92%e4%bd%9c%e6%88%90/</link>
		
		<dc:creator><![CDATA[sheltie]]></dc:creator>
		<pubDate>Mon, 13 Jan 2020 13:29:43 +0000</pubDate>
				<category><![CDATA[Flutter]]></category>
		<category><![CDATA[技術系]]></category>
		<guid isPermaLink="false">https://sheltie-garage.xyz/?p=1881</guid>

					<description><![CDATA[<p>とりあえず動かす! 前回の記事で、Flutterの開発環境はひとまず出来たはずなので、早速プロジェクトを作り、動作を確認してみます。 新規プロジェクト作成から動作確認まで Android Studioを起動し、「Star [&#8230;]</p>
<p>投稿 <a href="https://sheltie-garage.xyz/2020/01/flutter-%e6%9c%80%e5%88%9d%e3%81%ae%e3%83%97%e3%83%ad%e3%82%b8%e3%82%a7%e3%82%af%e3%83%88%e3%82%92%e4%bd%9c%e6%88%90/">Flutter 最初のプロジェクトを作成</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">とりあえず動かす!</h2>



<p>前回の記事で、Flutterの開発環境はひとまず出来たはずなので、早速プロジェクトを作り、動作を確認してみます。</p>



<h2 class="wp-block-heading">新規プロジェクト作成から動作確認まで</h2>



<p>Android Studioを起動し、「Start a new Flutter project」を選択します。</p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="779" height="492" src="https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-1.png" alt="" class="wp-image-1882" srcset="https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-1.png 779w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-1-300x189.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-1-768x485.png 768w" sizes="(max-width: 779px) 100vw, 779px" /></figure>



<p>Flutter Applicatoinを選択します。</p>



<figure class="wp-block-image size-large"><img decoding="async" width="802" height="682" src="https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-2-2.png" alt="" class="wp-image-1883" srcset="https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-2-2.png 802w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-2-2-300x255.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-2-2-768x653.png 768w" sizes="(max-width: 802px) 100vw, 802px" /></figure>



<p>Flutter SDKのパスを指定し、Nextをクリックします。</p>



<figure class="wp-block-image size-large"><img decoding="async" width="802" height="682" src="https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-3-2.png" alt="" class="wp-image-1884" srcset="https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-3-2.png 802w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-3-2-300x255.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-3-2-768x653.png 768w" sizes="(max-width: 802px) 100vw, 802px" /></figure>



<p>パッケージ名などを指定します。今回は動作確認だけなので、すべてデフォルトで設定し、Finishをクリックします。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="802" height="682" src="https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-4-2.png" alt="" class="wp-image-1885" srcset="https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-4-2.png 802w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-4-2-300x255.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-4-2-768x653.png 768w" sizes="auto, (max-width: 802px) 100vw, 802px" /></figure>



<p>エディタが立ち上がりました。AndroidデバイスがUSBデバッグ有効の状態でつながっている場合、実行環境に物理デバイスが指定できます。緑色の再生ボタンをクリックすればビルドが始まりアプリケーションが実行されます。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="555" src="https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-5-2-1024x555.png" alt="" class="wp-image-1886" srcset="https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-5-2-1024x555.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-5-2-300x163.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-5-2-768x416.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-5-2-1536x832.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-5-2.png 1920w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>ビルドしたアプリが、実機上で確認できました!</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="768" src="https://sheltie-garage.xyz/wp-content/uploads/2020/01/20200113_111418349_iOS-1024x768.png" alt="" class="wp-image-1887" srcset="https://sheltie-garage.xyz/wp-content/uploads/2020/01/20200113_111418349_iOS-1024x768.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/20200113_111418349_iOS-300x225.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/20200113_111418349_iOS-768x576.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/20200113_111418349_iOS-1536x1152.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/20200113_111418349_iOS.png 1920w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>物理デバイスが存在しない場合、エミュレータを起動してそちらで確認することもできます。<br>ドロップダウンから作成したエミュレータ(仮想デバイス)を選択することで、エミュレータ上で動作確認を撮ることができます。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="554" src="https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-6-2-1024x554.png" alt="" class="wp-image-1888" srcset="https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-6-2-1024x554.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-6-2-300x162.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-6-2-768x415.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-6-2-1536x830.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-6-2.png 1920w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="554" src="https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-7-1024x554.png" alt="" class="wp-image-1889" srcset="https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-7-1024x554.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-7-300x162.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-7-768x416.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-7-1536x831.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-7.png 1920w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading">以上です。</h2>



<p>ひとまずFlutterでHello World的な動作確認を取ることができました。開発環境の構築はかなり簡単でしたので、「アプリが作りたいっ！」と思ったらすぐに開発が始められそうです。<br>といっても、Flutterの開発言語であるDartは全く触ったことがないので、Dartも併せて勉強が必要ですね。</p>


<p>投稿 <a href="https://sheltie-garage.xyz/2020/01/flutter-%e6%9c%80%e5%88%9d%e3%81%ae%e3%83%97%e3%83%ad%e3%82%b8%e3%82%a7%e3%82%af%e3%83%88%e3%82%92%e4%bd%9c%e6%88%90/">Flutter 最初のプロジェクトを作成</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Flutter事始め</title>
		<link>https://sheltie-garage.xyz/2020/01/flutter%e4%ba%8b%e5%a7%8b%e3%82%81/</link>
		
		<dc:creator><![CDATA[sheltie]]></dc:creator>
		<pubDate>Sun, 12 Jan 2020 23:22:52 +0000</pubDate>
				<category><![CDATA[Flutter]]></category>
		<category><![CDATA[アプリ]]></category>
		<category><![CDATA[技術系]]></category>
		<guid isPermaLink="false">https://sheltie-garage.xyz/?p=1868</guid>

					<description><![CDATA[<p>Fluterやってみます 最近社内の別チームがFlutterを利用したアプリを開発しており、社内勉強会にて概要を知る機会がありました。現在Webで稼働させている一部のアプリをスマホネイティブに作り変えたいなという思いもあ [&#8230;]</p>
<p>投稿 <a href="https://sheltie-garage.xyz/2020/01/flutter%e4%ba%8b%e5%a7%8b%e3%82%81/">Flutter事始め</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Fluterやってみます</h2>



<p>最近社内の別チームがFlutterを利用したアプリを開発しており、社内勉強会にて概要を知る機会がありました。現在Webで稼働させている一部のアプリをスマホネイティブに作り変えたいなという思いもあり、Flutterを入れてみることにしました。</p>



<h2 class="wp-block-heading">環境作成</h2>



<p>まずは開発環境の構築から・・・<br>以下の資料をもとに設定しました。<br><a href="https://flutter.dev/docs/get-started/install/windows">https://flutter.dev/docs/get-started/install/windows</a></p>



<h3 class="wp-block-heading">Flutterの取得</h3>



<p>注意点として、権限を要求されるディレクトリにインストールしてはいけません。( <code>C:\Program Files\</code> など)<br>自分は「C:\flutter」に展開しました。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="572" height="122" src="https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-2.png" alt="" class="wp-image-1870" srcset="https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-2.png 572w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-2-300x64.png 300w" sizes="auto, (max-width: 572px) 100vw, 572px" /></figure>



<p>システム変数にflutter\binパスを追加</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="781" src="https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-3-1024x781.png" alt="" class="wp-image-1871" srcset="https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-3-1024x781.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-3-300x229.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-3-768x586.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-3.png 1103w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>その後、プロンプトから「flutter doctor」を実行することでインストール状態が確認できます。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="892" height="164" src="https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-4.png" alt="" class="wp-image-1872" srcset="https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-4.png 892w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-4-300x55.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-4-768x141.png 768w" sizes="auto, (max-width: 892px) 100vw, 892px" /></figure>



<p>実行したところ、ライセンスに同意していないという警告が表示されたため、表示内容の通り<br>「flutter doctor &#8211;android-license」を実行しました</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="775" height="218" src="https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-5.png" alt="" class="wp-image-1873" srcset="https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-5.png 775w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-5-300x84.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-5-768x216.png 768w" sizes="auto, (max-width: 775px) 100vw, 775px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="896" height="141" src="https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-6.png" alt="" class="wp-image-1874" srcset="https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-6.png 896w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-6-300x47.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-6-768x121.png 768w" sizes="auto, (max-width: 896px) 100vw, 896px" /></figure>



<h3 class="wp-block-heading">Android Studioインストール</h3>



<p>今回Android Studioはインストール済みのため、自分の場合最新バージョンへのアップデートのみ行いました</p>



<h3 class="wp-block-heading">Androidデバイスのデバッグ設定</h3>



<p>Androidで隠しコマンドを実行するとUSBデバッグを有効にできます。<br><a href="https://developer.android.com/studio/debug/dev-options?hl=ja">https://developer.android.com/studio/debug/dev-options?hl=ja</a><br>が参考になるかと思います。</p>



<h3 class="wp-block-heading">Android Studio エミュレータ設定</h3>



<p>最後にAndroidエミュレータを作成します。Android Studio 3.5.3では、以下の手順にて作成できました。</p>



<p>Welcomeダイアログの「Configure > AVD Manager」を選択</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="668" height="492" src="https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-2-1.png" alt="" class="wp-image-1875" srcset="https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-2-1.png 668w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-2-1-300x221.png 300w" sizes="auto, (max-width: 668px) 100vw, 668px" /></figure>



<p>Create Virtual Deviceを選択</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="668" height="492" src="https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-3-1.png" alt="" class="wp-image-1876" srcset="https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-3-1.png 668w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-3-1-300x221.png 300w" sizes="auto, (max-width: 668px) 100vw, 668px" /></figure>



<p>端末一覧が表示されるため、選択後「Next」をクリック</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1002" height="682" src="https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-4-1.png" alt="" class="wp-image-1877" srcset="https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-4-1.png 1002w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-4-1-300x204.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-4-1-768x523.png 768w" sizes="auto, (max-width: 1002px) 100vw, 1002px" /></figure>



<p>Androidバージョンが選択できるので、選択後「Next」をクリック</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1002" height="682" src="https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-5-1.png" alt="" class="wp-image-1878" srcset="https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-5-1.png 1002w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-5-1-300x204.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-5-1-768x523.png 768w" sizes="auto, (max-width: 1002px) 100vw, 1002px" /></figure>



<p>必要事項を設定し「Finish」で設定完了</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="709" src="https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-6-1-1024x709.png" alt="" class="wp-image-1879" srcset="https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-6-1-1024x709.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-6-1-300x208.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-6-1-768x532.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2020/01/Image-6-1.png 1190w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h3 class="wp-block-heading">ひとまず以上</h3>



<p>開発環境とエミュレータのセットアップは以上です。<br>次はシンプルなFlutterアプリを作成し、実行してみます。</p>


<p>投稿 <a href="https://sheltie-garage.xyz/2020/01/flutter%e4%ba%8b%e5%a7%8b%e3%82%81/">Flutter事始め</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
