<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by 王彤 on Medium]]></title>
        <description><![CDATA[Stories by 王彤 on Medium]]></description>
        <link>https://medium.com/@sparky800321?source=rss-c461d0c85a7d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*zYRLVjnVh4J-vGT2.</url>
            <title>Stories by 王彤 on Medium</title>
            <link>https://medium.com/@sparky800321?source=rss-c461d0c85a7d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 12:34:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sparky800321/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Flutter 如何使用TextField]]></title>
            <link>https://medium.com/tungs-flutter/flutter-%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8textfield-c6f17679eef0?source=rss-c461d0c85a7d------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6f17679eef0</guid>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[android-app-development]]></category>
            <dc:creator><![CDATA[王彤]]></dc:creator>
            <pubDate>Tue, 29 Sep 2020 06:15:03 GMT</pubDate>
            <atom:updated>2020-09-29T06:15:03.796Z</atom:updated>
            <content:encoded><![CDATA[<p>這是一個預設的TextField</p><pre>TextField()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/420/1*rU-E-WcYmdMkyB0xc3wEzg.png" /></figure><h3>修改TextField內部的文字style</h3><pre>TextField(<br>  style: TextStyle(<br>    color: Color(0xff176A6E),<br>    fontWeight: FontWeight.<em>bold</em>,<br>  ),<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/1*qsrbLm2qtd4wA46MW3NGyA.png" /></figure><h3>修改游標</h3><pre>TextField(<br>  cursorColor: Color(0xff176A6E),<br>  cursorWidth: 20,<br>  cursorRadius: Radius.circular(10.0),<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/417/1*HfUpFuc-ku9k_lwYzvQVMA.png" /></figure><h3>限制字數</h3><pre>child: TextField(<br>  maxLength: 5,<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/1*B3uns-Ky6dFaNEYRmhN4DA.png" /></figure><h3>設定最大行數</h3><p>如果將最大行數設為null的話，當文字內容超過TextField，會自動換行，且TextField的高度也會自動增加</p><pre>TextField(<br>  maxLines: null,<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/422/1*ARStwqiLX7DDRiAp8o5oww.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/417/1*eYGXg45u5yp59-BbbJdAxg.png" /></figure><p>如果給固定行數的話，TextField的高度一開始就會計算好</p><pre>TextField(<br>  maxLines: 4,<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/422/1*Wdso0U4VVAVU-0YuJ_UG2Q.png" /></figure><h3>隱藏輸入的資訊</h3><pre>TextField(<br>  obscureText: true,<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/415/1*fBoxA-KFiO1_zblKyaBG9A.png" /></figure><h3>加入Label及Hint</h3><pre>TextField(<br>  decoration: InputDecoration(<br>    hintText: &#39;Hint&#39;,<br>    labelText: &#39;Label&#39;,<br>  ),<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/1*9XTo70Rt4X89lEQZYyHLFw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/422/1*_ovM0ATsdOE_9K-H0JmIGw.png" /></figure><h3>加入Prefix或Suffix</h3><blockquote>icon</blockquote><pre>TextField(<br>  decoration: InputDecoration(<br>    icon: Icon(Icons.<em>shop</em>),<br>  ),<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/421/1*4Id_aRn0xb-Mo-D5Iu-GaA.png" /></figure><blockquote>prefix icon</blockquote><pre>TextField(<br>  decoration: InputDecoration(<br>    prefixIcon: Icon(Icons.<em>shop</em>),<br>  ),<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/414/1*irxW942q37fsGfTRyT6Ynw.png" /></figure><blockquote>suffix icon</blockquote><pre>TextField(<br>  decoration: InputDecoration(<br>    suffixIcon: Icon(Icons.<em>shop</em>),<br>  ),<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/417/1*x3c251rghFnlJMwr2d9Iag.png" /></figure><blockquote>Prefix</blockquote><pre>TextField(<br>  decoration: InputDecoration(<br>    prefix: CircularProgressIndicator(),<br>  ),<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/420/1*zTeQrPyy51gL8bevJEFZAQ.png" /></figure><blockquote>Suffix</blockquote><pre>TextField(<br>  decoration: InputDecoration(<br>    suffix: CircularProgressIndicator(),<br>  ),<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/415/1*CLJRPN_ny3WBE2wjTrw3SQ.png" /></figure><h3>Helper text</h3><pre>TextField(<br>  decoration: InputDecoration(<br>    helperText: &#39;Please input your content&#39;,<br>  ),<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/423/1*vuLJ7NtNuAT7XgGuY9b9fQ.png" /></figure><h3>消除底線</h3><pre>TextField(<br>  decoration: InputDecoration.collapsed(hintText: null),<br>),</pre><pre>TextField(<br>  decoration: InputDecoration(<br>    border: InputBorder.<em>none</em>,<br>  ),<br>),</pre><pre>TextField(<br>  decoration: null,<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/423/1*d23f3rSGSKNDvs0FJsIrUw.png" /></figure><h3>設定Border</h3><pre>TextField(<br>  decoration: InputDecoration(<br>    border: OutlineInputBorder(),<br>  ),<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/425/1*jNom8s-DauP0ROHxl09UZg.png" /></figure><h3>文字內容的padding</h3><pre>TextField(<br>  decoration: InputDecoration(<br>    contentPadding: EdgeInsets.all(20)<br>  ),<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/420/1*AZ0ddXCY_Ft3Asxe09NBmw.png" /></figure><h3>各種Callback</h3><pre>TextField(<br>  onChanged: (text) {},<br>  onEditingComplete: () {},<br>  onSubmitted: (text) {},<br>),</pre><pre>onChanged: 文字內容改變的時候觸發<br>onEditingComplete: 文字編輯完成時觸發<br>onSubmitted: 點擊鍵盤的完成或送出時觸發</pre><h3>各種鍵盤</h3><pre>有好多個，大家自己試XD</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/1*U3Q5qmwul_31IACaptovcw.png" /></figure><h3>各種InputAction</h3><pre>指的就是鍵盤右下角的按鈕，截圖是done，也是好多個，大家自己試</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/505/1*SQIquW5yiz73mbaIxgtCuw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/440/1*Ad2zO8ioDk96l-aYCLueJw.png" /></figure><p>常用的大概是這些，稍微做個紀錄！</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c6f17679eef0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tungs-flutter/flutter-%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8textfield-c6f17679eef0">Flutter 如何使用TextField</a> was originally published in <a href="https://medium.com/tungs-flutter">Tung’s Flutter</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[工程師的日常]]></title>
            <link>https://medium.com/tungs-career/%E5%B7%A5%E7%A8%8B%E5%B8%AB%E7%9A%84%E6%97%A5%E5%B8%B8-e849e80c2ddd?source=rss-c461d0c85a7d------2</link>
            <guid isPermaLink="false">https://medium.com/p/e849e80c2ddd</guid>
            <category><![CDATA[careers]]></category>
            <category><![CDATA[jobs]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <dc:creator><![CDATA[王彤]]></dc:creator>
            <pubDate>Sun, 27 Sep 2020 13:55:47 GMT</pubDate>
            <atom:updated>2020-09-27T13:55:47.709Z</atom:updated>
            <content:encoded><![CDATA[<p>自從成為工程師後，大部分時間都是過著趕工的生活，不過由於老闆不崇尚加班，所以加班的情況不嚴重，大部分都能準時下班，除非我自己想要多做一點。</p><p>最近也是趕著要讓產品上線，所以每天都在根據同事及用戶的Feedback修改程式，粗估本週(9/21 ~ 9/26)修了大概400個Case。</p><p>修改的Case有大有小，有的只是修改文字，有的是邏輯重構，有的是整個頁面重做，累積起來的「厭世感」也是相當可觀的。</p><p>由於不斷累積的厭世感，我的耐心也不斷的被消磨，講話的口氣也越來越明顯的不耐煩，不耐煩的口氣甚至明顯到等我下班的老婆都感受到了，老婆事後還跟我說：「你怎麼可以這樣跟老版說話？」，可見我有多不耐煩了吧！？</p><p>總之就是跟大家分享，成為一個工程師後，時常要過著趕工的生活。</p><p>後記：</p><p>最近其實一直想著要斜槓一下，可能是寫點文章、出門拍拍照、學一點後端的語言，但近期的生活實在是有點緊繃，希望接下來可以多釋出一點空檔做一些前端工程師以外的事情。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e849e80c2ddd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tungs-career/%E5%B7%A5%E7%A8%8B%E5%B8%AB%E7%9A%84%E6%97%A5%E5%B8%B8-e849e80c2ddd">工程師的日常</a> was originally published in <a href="https://medium.com/tungs-career">Tung’s career</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[週記 8/23–8/30]]></title>
            <link>https://medium.com/@sparky800321/%E9%80%B1%E8%A8%98-8-23-8-30-c77f8b3b3ec6?source=rss-c461d0c85a7d------2</link>
            <guid isPermaLink="false">https://medium.com/p/c77f8b3b3ec6</guid>
            <category><![CDATA[weekly]]></category>
            <dc:creator><![CDATA[王彤]]></dc:creator>
            <pubDate>Sat, 29 Aug 2020 09:25:50 GMT</pubDate>
            <atom:updated>2020-08-29T09:25:50.728Z</atom:updated>
            <content:encoded><![CDATA[<h3>8/23–8/30</h3><p>8/23</p><p>基於無聊用Flutter寫了一個Note App來練習</p><p><a href="https://github.com/TungWang/NoteApp">TungWang/NoteApp</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*p8VhwgILpAtibOHNkY0BVw.gif" /></figure><p>8/24–8/28</p><p>我解鎖了人生成就：敎召。</p><p>在空檔時間我看了「跨能致勝」這本書。</p><p><a href="https://www.books.com.tw/products/0010865065">https://www.books.com.tw/products/0010865065</a>(博客來連結)</p><p>內容大概是在破解一萬小時定律(如果你能花一萬小時在某個領域上，你就能成為該領域的專家)的迷思，說明其實跨領域學習更符合現在的環境，而且世界上大部分的頂尖人才通常也不只專精一個領域。</p><p>我大概看了一半，裡面有許多例子來印證他的論點，以往我都深怕把時間拿來投入在我的專業以外的技能，現在我反倒是有勇氣去做跨領域的學習了。</p><p>我的理解拉！</p><p>其實他也不是說專精不好，只是世界上有很多人害怕輸在起跑點，一但在某個領域下苦功了，就無法放棄在該領域的成就，畢竟我可是在該領域花了大把時間啊！但是因為該領域就放棄學習其他事物真的是太可惜了！這個世界上其實是有非常多有成就的人是半路出家的，或許還是占大多數呢！</p><p>於是我就鼓起勇氣買了「設計的方法：100個分析難題，跟成功商品取經，讓設計更棒、更好的有效方法」</p><p><a href="https://www.books.com.tw/products/0010562905">https://www.books.com.tw/products/0010562905</a>(借用博客來連結)</p><p>其實之前就一直有想要試著去學習UX相關的知識，但我的腦袋一直在告訴我「程式都沒寫得比別人好了，還敢去碰別的東西啊！」這本書給了我勇氣跨出第一步，之後除了UX以外還想要學習後端的知識。</p><p>以後偶爾就來寫寫週記好了！</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c77f8b3b3ec6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[成為工程師之後呢?]]></title>
            <link>https://medium.com/tungs-career/%E6%88%90%E7%82%BA%E5%B7%A5%E7%A8%8B%E5%B8%AB%E4%B9%8B%E5%BE%8C%E5%91%A2-26eae16edf6d?source=rss-c461d0c85a7d------2</link>
            <guid isPermaLink="false">https://medium.com/p/26eae16edf6d</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[jobs]]></category>
            <dc:creator><![CDATA[王彤]]></dc:creator>
            <pubDate>Fri, 21 Aug 2020 13:32:34 GMT</pubDate>
            <atom:updated>2020-08-21T13:32:34.334Z</atom:updated>
            <content:encoded><![CDATA[<p>「一個故事的結束，代表另一個故事的開始。」</p><pre>學歷：<br>國立ＸＸ大學大氣科學系肄業<br>私立ＸＸ大學經濟系畢業<br>經歷：<br>ＸＸ人壽    102年~107年<br>ＸＸ建材行  107年~107年7月<br>ＸＸ科技    107年7月~至今</pre><p>好了，我終於成為工程師了！那麼接下來呢？</p><p>在面試的時候我就知道，我是公司唯一一個iOS App前端工程師，但實際面對的時候才發現多麼茫然。</p><p>我看著ＵＩ設計師給我的設計稿，很想要動手，卻不知該如何動手，不管了！就把畫面一個一個拆解，從我會做的東西開始吧！</p><p>嗯⋯⋯這個應該是個UIButton，但是這個陰影怎麼做？圓角呢？咦？怎麼跟我想的不一樣？求求Google大神救救我！</p><p>就這樣我一邊Google一邊慢慢的刻UI，到了下班時間進度還是不甚理想。</p><p>「只好帶回家趕工了。」雖然沒人要求我的進度，但我還是希望能盡快把設計稿上有的東西做完。</p><p>第一個月，我天天帶電腦回家寫到十二點。</p><p>第二個月，我不用帶電腦回家寫了，但我依舊把問題帶回家Google。</p><p>第三個月，基本上我已經不需要用到下班時間也能好好的開發了。</p><p>就在我覺得一切順利的時候⋯⋯故事總是會有一些轉折的，而轉折通常帶來的就是成長。</p><p>我大概把整個UI設計稿做完三成之後才知道，原來這份設計稿不是最終確認版，我只好摸摸鼻子重新開始做了。</p><p>我很慶幸我在我的工程師生涯中很快就遇到這樣的情況，原來，做軟體工程不是像我這樣低著頭往前衝，我怎麼沒想過多去跟設計師溝通，多跟老闆確認？再重寫的過程中，我也發現我前面三個月寫得有多麼糟糕，從此以後我習慣在開始做UI前花大把的時間設計架構、整理出共用的元件，作畫面前也會跟設計師在確認過一次。</p><p>之後我在107年12月的時候完成了我的第一個App，目前也持續在維護改版中，是一個空間管理用的App，而我們的第一個客戶也在107年12月24日聖誕夜正式啟用，目前也是順利營運中。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=26eae16edf6d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tungs-career/%E6%88%90%E7%82%BA%E5%B7%A5%E7%A8%8B%E5%B8%AB%E4%B9%8B%E5%BE%8C%E5%91%A2-26eae16edf6d">成為工程師之後呢?</a> was originally published in <a href="https://medium.com/tungs-career">Tung’s career</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[如何使用Git版控 Part.1 建立Repository]]></title>
            <link>https://medium.com/@sparky800321/%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8git%E7%89%88%E6%8E%A7-part-1-%E5%BB%BA%E7%AB%8Brepository-be64b399ad10?source=rss-c461d0c85a7d------2</link>
            <guid isPermaLink="false">https://medium.com/p/be64b399ad10</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[github-pages]]></category>
            <dc:creator><![CDATA[王彤]]></dc:creator>
            <pubDate>Sat, 06 Jun 2020 02:57:45 GMT</pubDate>
            <atom:updated>2020-06-06T02:58:40.862Z</atom:updated>
            <content:encoded><![CDATA[<p>鑑於每次要使用Git時都要再Google一次怎麼用，乾脆自己來寫一系列的筆記。</p><p>本系列以Mac、Sourcetree及Github為例。</p><h4>(一)先去安裝Sourcetree，以及申請一個Github帳號吧！</h4><h4>(二)開啟新專案</h4><p>本文以Xcode為例，畢竟我是開發iOS App為主的</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-nt52pnrCMkYeA095x4r3w.png" /></figure><h4>(三)建立Local端版控</h4><p>開啟Sourcetree &gt; Local &gt; New… &gt; Add Existing Local Repository &gt; 選擇要建立版控的專案後按Open，確定沒問題後按下Create，然後就可以勾選要把哪些檔案加入版控，這時別太衝動全部打勾阿！趕快進入下一步</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*0U85L0CXzvb9687PM9j2SA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bFAcaNbYJZzjwZslK2h2mA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cS_ysbzZlkRi0ZlXbpmftg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mHlk006x1Hl_i2kTlN2FOA.png" /></figure><h4>(四)新增.gitignore檔案</h4><p>這個檔案可以幫助開發者忽略一些不需要加入Git的檔案，我也不是很懂到底哪些東西可以省略，所以我一向是直接使用別人產生好的.gitignore，例如這個網站<a href="https://www.toptal.com/developers/gitignore">https://www.toptal.com/developers/gitignore</a>，將開發使用的語言或是IDE的名稱輸入進去，就會自動產生好。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wEDpSVrcPucL9cfRDK3uUQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tLVnUC9TJtELAHslJJ4a2g.png" /></figure><p>建議是在專案剛建立時就把.gitignore設定好，因為.gitignore只會對規則設定之後的檔案有效，且如果有其他一起開發的夥伴的話，在夥伴clone專案時會把.gitignore一起clone下來，這樣就可以大家用一份.gitignore了，可以減少很多merge時的衝突。</p><p>解釋完了就進入操作流程吧！</p><p>開啟terminal &gt; 進入專案路徑 &gt; 輸入建立.gitignore的指令</p><pre>$ touch .gitignore</pre><p>然後就可以進到專案路徑以後打開.gitignore，將剛剛自動產生的.gitignore複製貼上，save and close，就完成了。</p><p>找不到.gitignore？因為他是隱藏的檔案，在專案路徑底下按command + shift + . 就會看到他了。</p><h4>(五)Commit</h4><p>再回到Sourcetree，會發現可以選擇版控的檔案變少了，這時候就可以放心的把全部打勾了！</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-nMWVCL0NmzVBzdmjlthUw.png" /></figure><p>在最下面輸入Commit message(就是對版本的敘述)，我就簡單地寫個First commit後按右下角的Commit，恭喜你！你已經把這個專案加入Local端的版控了！</p><p>這時Sourcetree應該是長這樣。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BPY6BCscxQuXLdkbWoy05Q.png" /></figure><h4>(六)建立Remote版控</h4><p>登入Github &gt; 右上角+&gt; New repository &gt; 編輯一下Repository的內容。</p><p>Repository name就用跟專案一樣的名稱就可以了。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*kdQgAWBo51em0KEVg4VrjA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8EeOQwNmDk8Hnv5VbldiGw.png" /></figure><p>把Https的URL複製下來後回到Sourcetree</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fMJcEm8GhProfRmjOb-NeA.png" /></figure><p>右上角Setting &gt; Remote &gt; Add，輸入Remote name(要輸入Remote端的名稱，不是Local端)，將URL貼上，然後一直按OK，這樣就將Local端跟Remote端關聯上了。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MYDhTuQU9mt9OHgf2UEaIA.png" /></figure><h4>(七)Push</h4><p>Push就是將Local端的版本上傳到Remote。</p><p>左上角Push用力按下去 &gt; 選擇要push的Branch &gt; OK，完成後就可以回到你的Github看看專案現在的狀態了</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VKnGuXeITS6h6PIkAkbgjg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MRrvYQ2c9OE5vclCXpU0Vw.png" /></figure><p>大概就這樣，雖然標題寫Part 1，但不知道會不會寫Part 2</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be64b399ad10" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hello World. 我是怎麼轉職成為前端工程師的？]]></title>
            <link>https://medium.com/tungs-career/hello-world-a149c72acd2a?source=rss-c461d0c85a7d------2</link>
            <guid isPermaLink="false">https://medium.com/p/a149c72acd2a</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[jobs]]></category>
            <dc:creator><![CDATA[王彤]]></dc:creator>
            <pubDate>Mon, 25 May 2020 14:44:17 GMT</pubDate>
            <atom:updated>2020-05-26T00:04:34.642Z</atom:updated>
            <content:encoded><![CDATA[<h3>Hello World.</h3><p>「再這樣下去不行！」我一邊將磁磚從貨車上卸下來，一邊這樣告訴自己。</p><pre>「路上車這麼多，如果我不小心出車禍，那這個月賺的不就都沒了？」<br>「好熱啊！原來靠勞力賺錢的人這麼辛苦嗎？」<br>「難道我就只能靠勞力賺錢嗎？我看還是想想別的出路吧？」</pre><p>自從開始賣磁磚以後心裏時不時就出現一些抱怨，總覺得不是很喜歡這樣的自己，要不⋯⋯真的換個工作吧？</p><p>剛好快要過年了，趁這段時間好好想想吧！</p><p>年假期間，今年從澳洲回來的堂哥決定跟著哥哥學習怎麼用Swift開發iOS App，不如我也來試試吧？</p><p>我記得很清楚，107年2月28日，我寫下我的第一行程式碼 — — Hello World.</p><p>我覺得很多事情都是一體兩面的，我常常會問自己：「我到底是在逃避還是勇於改變？會不會其實當我想辦法改變的時候其實是在逃避？」</p><p>認真過好每一天就對了！我這樣告訴我自己，於是接下來的每一天，我天天都在寫code，年假結束後，我仍然早上六點起來寫，下班繼續寫，如果是晚上值班的日子，我就把哥哥的Macbook帶去公司寫，一直寫、一直寫、一直寫⋯⋯，一直到哥哥叫我看的線上課程都結束了，差不多該找工作了吧？</p><p>找工作？那不就是該寫履歷了？</p><pre>學歷：<br>國立ＸＸ大學大氣科學系肄業<br>私立ＸＸ大學經濟系畢業<br>經歷：<br>ＸＸ人壽    102年~107年<br>ＸＸ建材行  107年至今</pre><p>痾⋯⋯我這樣的經歷應該對找前端工程師的工作完全沒幫助吧？但我也沒有其他東西好寫了，也只能這樣拉！反正大家都說工程師很缺，總會有辦法的！</p><p>日子一天一天過去⋯⋯，完全沒有任何一家公司有回覆。</p><p>「難道不是相關科系就不行嗎？對啦！如果是我，看到這樣的履歷也完全不會想找這個人來，那⋯⋯怎麼辦呢？要怎麼讓老闆知道我會寫code？」</p><p>於是我開始在Medium寫一些筆記，當作我的作品放在履歷裡面。</p><p><a href="https://medium.com/tungs-ios">Tung&#39;s iOS</a></p><p>最後我終於在107年7月拿到一間新創公司的Offer。</p><p>對了！在這之前我大概投了300家公司的履歷，只有3家公司找我去面試，如果你是跟我一樣完全沒有寫過程式的新手的話，一定要想辦法讓老闆知道你會寫程式，不管是寫Blog或是把程式碼放上Github，甚至是上架一款App。</p><p>有了自己的作品、實際在使用自己寫的App的客戶、一起努力的同事們，我所遇到的一切都讓我很慶幸我當初有鼓起勇氣寫程式。</p><p>Hello World.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a149c72acd2a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tungs-career/hello-world-a149c72acd2a">Hello World. 我是怎麼轉職成為前端工程師的？</a> was originally published in <a href="https://medium.com/tungs-career">Tung’s career</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter 淺談Container]]></title>
            <link>https://medium.com/tungs-flutter/flutter-%E6%B7%BA%E8%AB%87container-c75271c27ab6?source=rss-c461d0c85a7d------2</link>
            <guid isPermaLink="false">https://medium.com/p/c75271c27ab6</guid>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[王彤]]></dc:creator>
            <pubDate>Tue, 28 Jan 2020 15:14:08 GMT</pubDate>
            <atom:updated>2020-07-23T07:35:35.506Z</atom:updated>
            <content:encoded><![CDATA[<p>官方說明文件：<a href="https://api.flutter.dev/flutter/widgets/Container-class.html">https://api.flutter.dev/flutter/widgets/Container-class.html</a></p><p>官方文件就寫得非常棒了，這篇文章算是把一些基本的東西整理成我自己看得懂的版本。</p><h3>Layout behavior</h3><p>Container會盡可能的服從child的layout。</p><p>我的Text及Container沒有寫任何與layout相關的程式碼，Container會如下圖一樣，變得跟Text一樣大。</p><pre>Container(<br>  color: Colors.<em>white</em>,<br>  child: HelloWorldText(),<br>);</pre><pre>Text(<br>  &#39;Hello World&#39;,<br>  style: TextStyle(<br>    fontSize: 40,<br>  ),<br>);</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/1*XPwQQzBRMmxySSfGGWVVJg.png" /></figure><p>若有寫width, height則是以指定的width, height為優先</p><pre>Container(<br>  color: Colors.<em>white</em>,<br>  child: HelloWorldText(),<br>  padding: EdgeInsets.all(50.0),<br>  width: 200.0,<br>  height: 300.0,<br>);</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/1*gpjXJ7Dd5fxfA5F8NrXM_w.png" /></figure><h3>margin</h3><p>margin的值是EdgeInsets</p><p>margin:從Container的邊緣向「外」，與其他UI的距離。我將margin設為EdgeInsets.all(100.0)，結果會如下圖</p><pre>Container(<br>  color: Colors.<em>white</em>,<br>  child: HelloWorldText(),<br>  margin: EdgeInsets.all(100.0),<br>);</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*sWAm6gCXJkkChT4vbyOaNA.png" /></figure><h3>padding</h3><p>Padding的值是EdgeInsets</p><p>Padding:從Container的邊緣向「內」，與child的距離。我將padding設為EdgeInsets.all(50.0)，結果會如下圖</p><pre>Container(<br>  color: Colors.<em>white</em>,<br>  child: HelloWorldText(),<br>  padding: EdgeInsets.all(50.0),<br>);</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*heYDHY5KKLD1bjJd3BKpeg.png" /></figure><h3>color</h3><p>顧名思義就是Container的顏色</p><pre>Container(<br>  color: Colors.<em>red</em>,<br>  child: HelloWorldText(),<br>  padding: EdgeInsets.all(50.0),<br>);</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*HWukev6kkAX9mzidm_XnGA.png" /></figure><h3>alignment</h3><p>child的對齊方式，我發現寫了alignment後，Container似乎會向外擴展後再計算padding及margin</p><pre>Container(<br>  color: Colors.<em>red</em>,<br>  child: HelloWorldText(),<br>  padding: EdgeInsets.all(50.0),<br>  alignment: Alignment.<em>center</em>,<br>);</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*IBM3CgoHrcIki9MhYpa4ZQ.png" /></figure><h3>constraints</h3><p>constraints的值是BoxConstraints，用來設定Container的高度及寬度的最大及最小值</p><pre>Container(<br>  color: Colors.<em>red</em>,<br>  child: HelloWorldText(),<br>  padding: EdgeInsets.all(50.0),<br>  alignment: Alignment.<em>center</em>,<br>  constraints: BoxConstraints(<br>    maxHeight: 300.0,<br>    maxWidth: double.<em>infinity</em>,<br>  ),<br>);</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*44bPEZty0wa2RwJR4SoIWA.png" /></figure><h3>transform</h3><p>爬了許多文覺得太複雜，索性不寫了，只要記得是旋轉、縮放、變形大概都是這個屬性，有需要用的時候再來研究。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c75271c27ab6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tungs-flutter/flutter-%E6%B7%BA%E8%AB%87container-c75271c27ab6">Flutter 淺談Container</a> was originally published in <a href="https://medium.com/tungs-flutter">Tung’s Flutter</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[編寫Flutter app前的準備——在Android studio上安裝模擬器]]></title>
            <link>https://medium.com/tungs-flutter/%E7%B7%A8%E5%AF%ABflutter-app%E5%89%8D%E7%9A%84%E6%BA%96%E5%82%99-%E5%9C%A8android-studio%E4%B8%8A%E5%AE%89%E8%A3%9D%E6%A8%A1%E6%93%AC%E5%99%A8-c189f1ff77ab?source=rss-c461d0c85a7d------2</link>
            <guid isPermaLink="false">https://medium.com/p/c189f1ff77ab</guid>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[王彤]]></dc:creator>
            <pubDate>Fri, 24 Jan 2020 02:07:32 GMT</pubDate>
            <atom:updated>2020-01-24T02:09:14.457Z</atom:updated>
            <content:encoded><![CDATA[<h3>Android模擬器</h3><ol><li>打開Android studio</li><li>點選工具列上的Tools &gt; AVD Manager</li><li>點選左下角的Create Virtual Device</li><li>選擇你想要的模擬器，推薦Nexus 6，點選Next</li><li>選擇你想要的Android 版本，推薦Android Pie，當然你也可以全部安裝，但我認為至少要兼容到Pie</li><li>接下來就能先跑跑看Flutter的範例程式了</li></ol><pre>如果出現了下面的錯誤訊息：</pre><pre>To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.</pre><pre>代表有某些License還沒有同意，打開terminal，輸入以下指令：<br>flutter doctor --android-licenses</pre><pre>照著畫面上的流程走就會把需要的License都準備好了。</pre><h3>iOS模擬器</h3><ol><li>安裝Xcode</li><li>設定Xcode command-line tools</li></ol><p>輸入</p><p>$ sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer<br>$ sudo xcodebuild -runFirstLaunch</p><p>順便提醒一下，基本上需要做的動作都可以藉由flutter doctor來查詢，例如：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0GSIfbZTedP3WZdcbYPUIQ.png" /></figure><p>之後就能在Android studio中切換iOS及Android模擬器了</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GIjzlPhah_VoUUkOY2wbyA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c189f1ff77ab" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tungs-flutter/%E7%B7%A8%E5%AF%ABflutter-app%E5%89%8D%E7%9A%84%E6%BA%96%E5%82%99-%E5%9C%A8android-studio%E4%B8%8A%E5%AE%89%E8%A3%9D%E6%A8%A1%E6%93%AC%E5%99%A8-c189f1ff77ab">編寫Flutter app前的準備——在Android studio上安裝模擬器</a> was originally published in <a href="https://medium.com/tungs-flutter">Tung’s Flutter</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[在Mac上安裝Flutter]]></title>
            <link>https://medium.com/tungs-flutter/%E5%9C%A8mac%E4%B8%8A%E5%AE%89%E8%A3%9Dflutter-8468d5b5d8b6?source=rss-c461d0c85a7d------2</link>
            <guid isPermaLink="false">https://medium.com/p/8468d5b5d8b6</guid>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[王彤]]></dc:creator>
            <pubDate>Thu, 23 Jan 2020 15:47:40 GMT</pubDate>
            <atom:updated>2020-01-23T15:47:40.882Z</atom:updated>
            <content:encoded><![CDATA[<h3>安裝Flutter SDK</h3><ol><li>下為Flutter SDK官方下載連結<a href="https://storage.googleapis.com/flutter_infra/releases/stable/macos/flutter_macos_v1.12.13+hotfix.5-stable.zip">https://storage.googleapis.com/flutter_infra/releases/stable/macos/flutter_macos_v1.12.13+hotfix.5-stable.zip</a></li><li>下載完後解壓縮放到你想要的路徑(ex. /Users/wangtung/FlutterDeveloper)</li><li>設定Flutter指令路徑</li></ol><pre>開啟terminal</pre><pre>//利用vim開啟.bash_profile<br>vim .bash_profile</pre><pre>//在 bash_profile中加入Flutter指令路徑<br>export PATH=$PATH:[第二步時flutter資料夾的路徑]/bin<br>此例為：<br>export PATH=$PATH:/Users/wangtung/FlutterDeveloper/flutter/bin</pre><p>接下來就可以利用Flutter的指令</p><pre>//查看Flutter的版本<br>flutter --version</pre><pre>//檢查開發Flutter所需要的環境<br>flutter doctor</pre><h3>在Android studio安裝Flutter plugin</h3><p>寫Flutter可以使用Android studio或VS code，我選擇了Android studio，因為聽說用Android studio的模擬器會比較方便。</p><ol><li>打開Android studio後，於工具列點選Preferences</li><li>在Plugins 中搜尋Flutter並安裝</li><li>安裝的途中會提示Dart必須一併安裝</li><li>重新開啟Android studio</li></ol><p>Android studio的Welcome畫面就多了一個Start a new Flutter project選項了</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iDKEBBuYpsW-gVVibtdICQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8468d5b5d8b6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tungs-flutter/%E5%9C%A8mac%E4%B8%8A%E5%AE%89%E8%A3%9Dflutter-8468d5b5d8b6">在Mac上安裝Flutter</a> was originally published in <a href="https://medium.com/tungs-flutter">Tung’s Flutter</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Xcode 11: 如何創建與iOS12相容的專案]]></title>
            <link>https://medium.com/tungs-ios/xcode-11-%E5%A6%82%E4%BD%95%E5%89%B5%E5%BB%BA%E8%88%87ios12%E7%9B%B8%E5%AE%B9%E7%9A%84%E5%B0%88%E6%A1%88-99fccdb9409a?source=rss-c461d0c85a7d------2</link>
            <guid isPermaLink="false">https://medium.com/p/99fccdb9409a</guid>
            <category><![CDATA[swiftui]]></category>
            <category><![CDATA[xcode-10]]></category>
            <category><![CDATA[xcode11]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[swift-programming]]></category>
            <dc:creator><![CDATA[王彤]]></dc:creator>
            <pubDate>Mon, 18 Nov 2019 15:21:51 GMT</pubDate>
            <atom:updated>2019-11-18T15:21:51.756Z</atom:updated>
            <content:encoded><![CDATA[<p>自從更新Xcode11之後，每個開啟新專案的小夥伴都會發現多了一個SceneDelegate，而AppDelegate裡的程式碼也不盡相同，最大的問題就是只能與iOS13以上的版本相容，本文就手把手地教小夥伴們怎麼創建與iOS12相容的專案。</p><p>在iOS13之後，Window的概念被Scene所取代，SceneDelegate就是用來控制Scene的一個Protocol，細節在此不討論，直接創建一個Single View App來看看吧！</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WRcQ-vxC0-VdbXF277beRw.png" /></figure><pre>我們的目的是創建出跟Xcode10一樣的專案，所以User Interface毫不考慮的選擇Storyboard！</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Uncj_k7MgZYVOKSny45-WA.png" /></figure><pre>iOS Deployment直接選到10.0（還有客戶在使用iPhone 5啊～）</pre><p>此時看看AppDelegate以及SceneDelegate，跳出了一大堆錯誤訊息，其實就是告訴你：「你的版本一定要是iOS13.0以上喔！」</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IfGmizSKUVRw7DaowPioPA.png" /></figure><p>為了讓我的專案可以與iOS13.0以下的版本相容，接下來是重點！</p><ul><li>刪除Info.plist中的Application Scene Manifest</li></ul><pre>Application Scene Manifest裡面的屬性就是在告訴Xcode：「我現在要用SceneDelegate做開發」，所以也是豪不猶豫的刪除。</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wTfspsGEdO4wdARQiFfslQ.png" /></figure><ul><li>刪除SceneDelegate</li></ul><pre>既然都不使用SceneDelegate做開發了，當然還時毫不猶豫地刪除。</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u2JjuEVLxobqK1ZqinrA5w.png" /></figure><ul><li>加入我們用習慣的window且刪除UISceneSession Lifecycle</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A_F1_UCivT194r3iTy0avg.png" /></figure><p>這幾個步驟做完了以後就能跟以往一樣開發App了！</p><p>後記：</p><p>iOS13之後的SwiftUI是與過往完全不同的開發模式，但為了與iOS12相容，接下來應該還是會大量使用Storyboard，預計再過1~2年應該就會全面使用SwiftUI了！所以有空還是要試著用SwiftUI來練習。</p><p>To be continued……</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=99fccdb9409a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tungs-ios/xcode-11-%E5%A6%82%E4%BD%95%E5%89%B5%E5%BB%BA%E8%88%87ios12%E7%9B%B8%E5%AE%B9%E7%9A%84%E5%B0%88%E6%A1%88-99fccdb9409a">Xcode 11: 如何創建與iOS12相容的專案</a> was originally published in <a href="https://medium.com/tungs-ios">Tung&#39;s iOS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>