<?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[Viet Flutter Developers - Medium]]></title>
        <description><![CDATA[Sharing and study flutter of Vietnamese Developers - Medium]]></description>
        <link>https://medium.com/viet-flutter-developers?source=rss----bc6a68f00012---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Viet Flutter Developers - Medium</title>
            <link>https://medium.com/viet-flutter-developers?source=rss----bc6a68f00012---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 16 Nov 2026 18:08:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/viet-flutter-developers" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Expandable List Widget Packages]]></title>
            <link>https://medium.com/viet-flutter-developers/expandable-list-widget-packages-cb5e054e4c58?source=rss----bc6a68f00012---4</link>
            <guid isPermaLink="false">https://medium.com/p/cb5e054e4c58</guid>
            <category><![CDATA[flutter-widget]]></category>
            <category><![CDATA[vietflutterdevs]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Liem Vo]]></dc:creator>
            <pubDate>Wed, 12 Aug 2020 09:28:38 GMT</pubDate>
            <atom:updated>2020-08-15T19:41:57.134Z</atom:updated>
            <content:encoded><![CDATA[<h3>Expanded or collapsed List with Expandable Group Widget</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5JwHttIPQ6-TpLvkmEc6rQ.png" /></figure><p>Original from the GitHub readme.md</p><h3>ListExpandable</h3><p>A new Flutter widget support expanded and collapsed list for Flutter application. It supports Android, iOS, Web and Desktop.</p><p>Build expandable list widget support expanded and collapsed group data.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FPbZ7dDAboaI%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DPbZ7dDAboaI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FPbZ7dDAboaI%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0d7aa23bd87c07784399b5da68b465a3/href">https://medium.com/media/0d7aa23bd87c07784399b5da68b465a3/href</a></iframe><h3>Features</h3><ul><li>Expand and collapse header in the List</li><li>Support customise header and item in the list</li><li>Single ListView</li></ul><h3>Getting Started</h3><h3>1. Add dependency to your project’s pubspec.yaml and run pub get</h3><pre><strong>dependencies</strong>:<br>  <strong>expandable_group</strong>: ^0.0.5</pre><h3>2. Import list_expandable_widget.dart to your file project where is going to use the ListExpandableWidget.</h3><pre><strong>import</strong> &#39;package:expandable_group/expandable_group_widget.dart&#39;;</pre><h3>3. The ListExpandableWidget has some properties as below</h3><h4>3.1 Required</h4><ul><li>header the header widget and will display in the list</li><li>items the list of ListTile will display for each group</li></ul><h4>3.2 Optional</h4><ul><li>isExpanded is a boolean to expand or collapse header. isExpanded == true is the header will be expanded and otherwise. The default value is false.</li><li>expandedIcon and collapsedIcon are the widgets for the expanded and collapsed state.</li></ul><h3>4. Examples</h3><pre>ExpandableGroup(<br>    isExpanded: index == 0,<br>    header: _header(&#39;Group $index&#39;),<br>    items: _buildItems(context, group),<br>)</pre><h3>Submit bugs or request features</h3><p>Please file feature requests and bugs with GitHub <a href="https://github.com/liemvo/list_expandable/issues">issues tab</a></p><p>The full example:</p><pre>import &#39;package:flutter/material.dart&#39;;<br>import &#39;package:list_expandable/list_expandable_widget.dart&#39;;</pre><pre>void main() {<br>  runApp(MyApp());<br>}</pre><pre>class MyApp extends StatelessWidget {<br>  // This widget is the root of your application.<br>  @override<br>  Widget build(BuildContext context) {<br>    return MaterialApp(<br>      title: &#39;Expandable List demo&#39;,<br>      theme: ThemeData(<br>        primarySwatch: Colors.<em>blue</em>,<br>        visualDensity: VisualDensity.<em>adaptivePlatformDensity</em>,<br>      ),<br>      debugShowCheckedModeBanner: false,<br>      home: MyHomePage(<br>        title: &#39;Expandable List demo&#39;,<br>        data: _generateData(),<br>      ),<br>    );<br>  }</pre><pre>  List&lt;List&lt;String&gt;&gt; _generateData() {<br>    int numberOfGroups = 5;<br>    List&lt;List&lt;String&gt;&gt; results = List&lt;List&lt;String&gt;&gt;();<br>    for (int i = 0; i &lt; numberOfGroups; i++) {<br>      List&lt;String&gt; items = List&lt;String&gt;();<br>      for (int j = 0; j &lt; numberOfGroups * 5 + i; j++) {<br>        items.add(&quot;Item $j in group $i&quot;);<br>      }<br>      results.add(items);<br>    }<br>    return results;<br>  }<br>}</pre><pre>class MyHomePage extends StatefulWidget {<br>  final List&lt;List&lt;String&gt;&gt; data;<br>  MyHomePage({Key key, this.title, this.data}) : super(key: key);</pre><pre>  final String title;</pre><pre>  @override<br>  _MyHomePageState createState() =&gt; _MyHomePageState();<br>}</pre><pre>class _MyHomePageState extends State&lt;MyHomePage&gt; {<br>  @override<br>  Widget build(BuildContext context) {<br>    return Scaffold(<br>      appBar: AppBar(<br>        title: Text(widget.title),<br>      ),<br>      body: ListView(<br>        children: &lt;Widget&gt;[<br>          Column(<br>            children: widget.data.map((group) {<br>              int index = widget.data.indexOf(group);<br>              return ListExpandableWidget(<br>                isExpanded: index == 0,<br>                header: _header(&#39;Group $index&#39;),<br>                items: _buildItems(context, group),<br>              );<br>            }).toList(),<br>          )<br>        ],<br>      ),<br>    );<br>  }</pre><pre>  Widget _header(String name) =&gt; Text(name,<br>      style: TextStyle(<br>        fontSize: 16,<br>        fontWeight: FontWeight.<em>bold</em>,<br>      ));</pre><pre>  List&lt;ListTile&gt; _buildItems(BuildContext context, List&lt;String&gt; items) =&gt; items<br>      .map((e) =&gt; ListTile(<br>            title: Text(e),<br>          ))<br>      .toList();<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb5e054e4c58" width="1" height="1" alt=""><hr><p><a href="https://medium.com/viet-flutter-developers/expandable-list-widget-packages-cb5e054e4c58">Expandable List Widget Packages</a> was originally published in <a href="https://medium.com/viet-flutter-developers">Viet Flutter Developers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter — Tạo Splash Screen cho Android & iOS]]></title>
            <link>https://medium.com/viet-flutter-developers/flutter-t%E1%BA%A1o-splash-screen-cho-android-ios-b8b21068032a?source=rss----bc6a68f00012---4</link>
            <guid isPermaLink="false">https://medium.com/p/b8b21068032a</guid>
            <category><![CDATA[splash-screen]]></category>
            <category><![CDATA[vietflutter]]></category>
            <category><![CDATA[học]]></category>
            <dc:creator><![CDATA[Liem Vo]]></dc:creator>
            <pubDate>Mon, 03 Aug 2020 07:50:51 GMT</pubDate>
            <atom:updated>2020-08-03T07:55:42.090Z</atom:updated>
            <content:encoded><![CDATA[<h3>Flutter — Hướng dẫn tạo launch screen cho Android &amp; iOS</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ah8ao-xGMXtYdABW9V-XGA.png" /></figure><blockquote>Ứng dụng Android hoặc iOS thường có một màn hình chỉ xuất hiện hai đến ba giây trước khi di chuyển đến phần chính của ứng dụng. Đó được gọi là màn hình splash hay splash screen hoặc cũng có thể gọi là launch screen. Đối với các bạn đã từng biết lập trình Android và iOS việc tạo màn hình splash. Bài viết này sẽ giúp những bạn biết Android hoặc iOS hoặc chưa biết cả hai có thể tạo được màn hình Splash screen.</blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FYiDgq6-wlmo%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DYiDgq6-wlmo&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FYiDgq6-wlmo%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/d6b4b70da0f6ba03ab17baf9daf57761/href">https://medium.com/media/d6b4b70da0f6ba03ab17baf9daf57761/href</a></iframe><p><a href="https://github.com/liemvo/viet_flutter/releases/tag/01_splash_start">Code chương trình lúc bắt đầu</a></p><p>Bây giờ mình sẽ đi vào từng phần.</p><h3>Cho Android:</h3><p>Bất kỳ ứng dụng Android nào cũng cần 1 thời gian nhất định để hệ thống chuẩn bị tài nguyên cho phần chính của chương trình. Trong lúc đợi hệ thống khởi động, Android cung cấp 1 khái niệm là launch screen. Bây giờ chúng ta sẽ đi vào từng bước thiết lập màn hình này:</p><h3>Bước 1: Chuẩn bị file hình ảnh bạn muốn hiển thị ở màn hình launch. Ví dụ như hình dưới rồi đưa vào các thư mục của mipmap theo độ phân giải</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/216/0*F4uYNpWjnWgyMIA6" /></figure><h3>Bước 2: mở file <a href="https://github.com/liemvo/viet_flutter/tree/master/vif_splash/android">android</a>/<a href="https://github.com/liemvo/viet_flutter/tree/master/vif_splash/android/app">app</a>/<a href="https://github.com/liemvo/viet_flutter/tree/master/vif_splash/android/app/src">src</a>/<a href="https://github.com/liemvo/viet_flutter/tree/master/vif_splash/android/app/src/main">main</a>/<a href="https://github.com/liemvo/viet_flutter/tree/master/vif_splash/android/app/src/main/res">res</a>/<a href="https://github.com/liemvo/viet_flutter/tree/master/vif_splash/android/app/src/main/res/drawable">drawable</a>/launch_background.xml</h3><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br>&lt;!-- Modify this file to customize your launch splash screen --&gt;&lt;layer-list              xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;&gt;<br>    &lt;item android:drawable=&quot;@android:color/white&quot; /&gt;<br>    &lt;!-- You can insert your own image assets here --&gt;<br>    &lt;!-- &lt;item&gt;<br>         &lt;bitmap<br>             android:gravity=&quot;center&quot;<br>             android:src=&quot;@mipmap/launch_image&quot; /&gt;<br>    &lt;/item&gt; --&gt;<br>&lt;/layer-list&gt;</pre><p>Bỏ phần chú thích đến hình ảnh launcher thì ta sẽ được kết quả như sau:</p><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br>&lt;!-- Modify this file to customize your launch splash screen --&gt;&lt;layer-list              xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;&gt;<br>    &lt;item android:drawable=&quot;@android:color/white&quot; /&gt;<br>    &lt;!-- You can insert your own image assets here --&gt;<br>    &lt;item&gt;<br>         &lt;bitmap<br>             android:gravity=&quot;center&quot;<br>             android:src=&quot;@mipmap/launch_image&quot; /&gt;<br>    &lt;/item&gt;<br>&lt;/layer-list&gt;</pre><h3>Bước 3: Thay đổi màu sắc nền theo màu bạn thích bằng cách thêm colors.xml vào đường dẫn /<a href="https://github.com/liemvo/viet_flutter/tree/master/vif_splash/android">android</a>/<a href="https://github.com/liemvo/viet_flutter/tree/master/vif_splash/android/app">app</a>/<a href="https://github.com/liemvo/viet_flutter/tree/master/vif_splash/android/app/src">src</a>/<a href="https://github.com/liemvo/viet_flutter/tree/master/vif_splash/android/app/src/main">main</a>/<a href="https://github.com/liemvo/viet_flutter/tree/master/vif_splash/android/app/src/main/res">res</a>/values/</h3><pre>&lt;?xml version=”1.0&quot; encoding=”utf-8&quot;?&gt;<br>&lt;resources&gt;<br>    &lt;color name=”launch_color”&gt;#A0CED4&lt;/color&gt;<br>&lt;/resources&gt;</pre><h3>Bước 4: Sửa màu sắc nền dùng màu bạn vừa thêm vào bằng cách sửa file launch_background.xml (bước 2) bằng cách thay dòng</h3><pre>&lt;item android:drawable=”@android:color/white” /&gt;</pre><p>thành</p><pre>&lt;item android:drawable=”@color/launch_color” /&gt;</pre><h3>Bước 5: Build và chạy ứng dụng trên emulator hoặc điện thoại Android bạn sẽ có kết quả như bên dưới.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*7axsU6nvUqqpcg0n" /></figure><p>Kết quả trên Android</p><h3>Cho iOS</h3><p>Bạn phải có màn hình launch trước khí ứng dụng của bạn submit đến Apple Store. Và bạn phải dùng máy Mac để mở được ứng dụng xCode.</p><p>Để sửa màn hình launch bạn cần làm theo các bước sau.</p><h3>Bước 1: Mở phần code của iOS trên xCode</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/671/0*psDhN3MM9l1FVXGl" /></figure><h3>Bước 2: Vào Assets.xcassets -&gt; LaunchImage và thay đổi hình. Dùng hình như bước 1 của Android với ba độ phân giải x, 2x, và 3x.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/358/0*fzZ4NHWO6q1krG6T" /></figure><h3>Bước 3: Mở LaunchScreen.storyboard file</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/421/0*2KpB8fd84iqokg3X" /></figure><h3>Bước 4: Từ bước 3 chọn khung bên phải, click vào màu của background và chọn custom bạn sẽ có kết quả như bên dưới.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/0*RIoZ0cWckDebYqkP" /></figure><p>Bạn chọn màu nào bạn thích làm nền cho màn hình splash screen của bạn.</p><h3>Bước 5: Build và chạy trên simulator hoặc điện thoại của bạn và bạn sẽ thấy kết quả như sau</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*j2GnAhlR1gCIDlaay4RWRQ.png" /></figure><p>Cảm ơn bạn đã đọc bài và đăng ký kênh Youtube: <a href="https://bit.ly/31ctIY3">https://bit.ly/31ctIY3</a> để xem những video khác.</p><p><a href="https://github.com/liemvo/viet_flutter/releases/tag/01_splash_end">Code đã xong</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8b21068032a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/viet-flutter-developers/flutter-t%E1%BA%A1o-splash-screen-cho-android-ios-b8b21068032a">Flutter — Tạo Splash Screen cho Android &amp; iOS</a> was originally published in <a href="https://medium.com/viet-flutter-developers">Viet Flutter Developers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Giới thiệu Layout Widget — Single child layout widgets — Phần 1]]></title>
            <link>https://medium.com/viet-flutter-developers/gi%E1%BB%9Bi-thi%E1%BB%87u-layout-widget-single-child-layout-widgets-ph%E1%BA%A7n-1-aff3916c7f22?source=rss----bc6a68f00012---4</link>
            <guid isPermaLink="false">https://medium.com/p/aff3916c7f22</guid>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Liem Vo]]></dc:creator>
            <pubDate>Sun, 08 Dec 2019 09:20:13 GMT</pubDate>
            <atom:updated>2019-12-08T09:20:45.317Z</atom:updated>
            <content:encoded><![CDATA[<h3>Giới thiệu Layout Widget — Single child layout widgets — Phần 1</h3><p>Layout Widget là những widget chứa các widget code. Nếu bạn là lập trình viên Android thì sẽ không xa lạ với khái niệm layout. Flutter Layout Widgets có hai loại layout widgets chính là single — child và multi-child layout. Và cụ thể từng phần thế nào các bạn có thể theo dõi loạt bài viết sau.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9XjFq8a6qQp3DZWt" /><figcaption>Photo by <a href="https://unsplash.com/@halgatewood?utm_source=medium&amp;utm_medium=referral">Hal Gatewood</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3><strong>A. Single Child layout widgets</strong></h3><ol><li><a href="https://api.flutter.dev/flutter/widgets/Align-class.html"><strong>Align</strong></a>: Giúp định vị trí của widget con của nó và kích thước được thiết lập dựa trên kích thước của widget con.</li></ol><pre>final Color darkBlue = Color.fromARGB(255, 18, 32, 47);</pre><pre>class AlignLayoutApp extends StatelessWidget {<br>  <a href="http://twitter.com/override">@override</a><br>  Widget build(BuildContext context) {<br>    return MaterialApp(<br>      theme: ThemeData.dark().copyWith(scaffoldBackgroundColor: darkBlue),<br>      debugShowCheckedModeBanner: false,<br>      home: Scaffold(<br>        body: Container(<br>          width: 120,<br>          height: 120,<br>          color: Colors.blue[800],<br>          child: Align(<br>            alignment: Alignment.topLeft,<br>            // alignment: Alignmnet(0.2, 0.8),<br>            // alignment: FractionalOffset(0.2, 0.8),<br>            child: Icon(Icons.map, color: Colors.red, size: 60)<br>          ),<br>        ),<br>      ),<br>    );<br>  }<br>}</pre><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FNztPL8a--rw%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DNztPL8a--rw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FNztPL8a--rw%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/08d469c4670ad1bb5a1961afc1b7b725/href">https://medium.com/media/08d469c4670ad1bb5a1961afc1b7b725/href</a></iframe><p><strong>2. </strong><a href="https://api.flutter.dev/flutter/widgets/AspectRatio-class.html"><strong>AspectRatio</strong></a>: Widget để định dạng kích thước của widget con theo tỉ lệ nhất định của chiều dài và chiều rộng</p><pre>final Color darkBlue = Color.fromARGB(255, 18, 32, 47);</pre><pre>class AspectRatioLayoutApp extends StatelessWidget {<br>  <a href="http://twitter.com/override">@override</a><br>  Widget build(BuildContext context) {<br>    return MaterialApp(<br>      theme: ThemeData.dark().copyWith(scaffoldBackgroundColor: darkBlue),<br>      debugShowCheckedModeBanner: false,<br>      home: Scaffold(<br>        body: AspectRatio(<br>          aspectRatio: 3.2,<br>          child: Container(<br>              color: Colors.blue[800],<br>              child: Center(child: Text(&#39;Hello&#39;))),<br>        ),<br>      ),<br>    );<br>  }<br>}</pre><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FQppOj-4-vGo%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DQppOj-4-vGo&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FQppOj-4-vGo%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/fdea2d4fbcd33ecd26aa3242032d1dde/href">https://medium.com/media/fdea2d4fbcd33ecd26aa3242032d1dde/href</a></iframe><p>3. <a href="https://api.flutter.dev/flutter/widgets/Baseline-class.html">Baseline</a>: Widget để định vị trí của widget con dựa trên đường cơ bản (baseline).</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FpkxBZm4Ef_w%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DpkxBZm4Ef_w&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FpkxBZm4Ef_w%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/dbee630e30c47eb6a8b1ded9cccac402/href">https://medium.com/media/dbee630e30c47eb6a8b1ded9cccac402/href</a></iframe><p>Ví dụ</p><pre>Baseline(<br>  baseline: 0.3,<br>  baselineType: TextBaseline.alphabetic,<br>  child: Text(&#39;Hello world&#39;, style: TextStyle(color: Colors.blue),)<br>)</pre><p>4. <a href="https://api.flutter.dev/flutter/widgets/Center-class.html">Center</a>: Widget để giúp con ở vị trí chính giữa của nó.</p><p>Ở bên dưới là code ví dụ của center và baseline</p><pre>class BaseLayoutApp extends StatelessWidget {<br>  <a href="http://twitter.com/override">@override</a><br>  Widget build(BuildContext context) {<br>    return MaterialApp(<br>      theme: ThemeData.dark().copyWith(scaffoldBackgroundColor: darkBlue),<br>      debugShowCheckedModeBanner: false,<br>      home: Scaffold(<br>        body: Center(<br>          child: Container(<br>            color: Colors.green,<br>            child: Baseline(<br>                baseline: 0.3,<br>                baselineType: TextBaseline.alphabetic,<br>                child: Text(&#39;Hello world&#39;, style: TextStyle(color: Colors.blue),)<br>                ),<br>          ),<br>        ),<br>      ),<br>    );<br>  }<br>}</pre><p>Nếu bạn bỏ lỡ những bài bữa trước thì các bạn có thể xem lại ở những link bên dưới. Cảm ơn các bạn</p><p>5. <a href="https://api.flutter.dev/flutter/widgets/Container-class.html"><strong>Container layout widget</strong></a> là một widget giúp chúng ta định lại kích cỡ, màu sắc, margin, padding của layout mà nó chứa. Nó cũng có duy nhất một widget con, và bạn đã biết cách dùng qua những ví dụ vừa qua.</p><p>Ví dụ sau được khảo từ fluter.dev, được định nghĩa khá đầy đủ các thuộc tính của Container layout và có thể transform giúp cho phần khung hiển thị của “hello world&quot; có thể xoay 0.1</p><p><a href="https://api.flutter.dev/flutter/widgets/Container-class.html#widgets.Container.2">https://api.flutter.dev/flutter/widgets/Container-class.html#widgets.Container.2</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MsAFTsg664Et9XvyKmzPsQ.png" /><figcaption>Ví dụ Container layout widget từ Flutter.dev</figcaption></figure><p><a href="https://www.youtube.com/playlist?list=PLV5fsKZCPJNsq2owQp1qLrlHNHNbVveAi">Playlist</a></p><ol><li><a href="https://github.com/liemvo/FlutterExamples/blob/master/flutter_hello">Ví Dụ 1 Material, AppBar, Text, Theme, Stateless</a> <a href="https://www.youtube.com/watch?v=NH_uMfhXHs4">Video</a></li><li><a href="https://github.com/liemvo/FlutterExamples/blob/master/flutter_stateful">Ví Dụ 2 Column, RaiseButton, Icon and Stateful</a> <a href="https://www.youtube.com/watch?v=XTntFVnb3n8">Video</a></li><li><a href="https://github.com/liemvo/FlutterExamples/blob/master/flutter_vidu3">Ví Dụ 3 Các nút bấm phần 1 (Flatbutton, RaisedButton, and DropDownButton)</a> <a href="https://www.youtube.com/watch?v=6PYA7C_jsCg&amp;t=7s">Video</a></li><li><a href="https://github.com/liemvo/FlutterExamples/blob/master/flutter_vidu3">Ví Dụ 3 Các nút bấm phần 2 (FloatingActionButton va IconButton)</a> <a href="https://www.youtube.com/watch?v=BDeT6FbK5Co">Video 1</a><a href="https://www.youtube.com/watch?v=9ul5ScqPflg">Video 2</a></li><li><a href="https://github.com/liemvo/FlutterExamples/blob/master/flutter_layouts/lib/singlechild/align_layout.dart">Ví dụ Align layout widget</a> -&gt; <a href="https://www.youtube.com/watch?v=NztPL8a--rw">Video Align</a></li><li><a href="https://github.com/liemvo/FlutterExamples/blob/master/flutter_layouts/lib/singlechild/aspectratio_layout.dart">Ví dụ AspectRatio layout widget</a> -&gt; <a href="https://www.youtube.com/watch?v=QppOj-4-vGo">Video AspectRatio</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aff3916c7f22" width="1" height="1" alt=""><hr><p><a href="https://medium.com/viet-flutter-developers/gi%E1%BB%9Bi-thi%E1%BB%87u-layout-widget-single-child-layout-widgets-ph%E1%BA%A7n-1-aff3916c7f22">Giới thiệu Layout Widget — Single child layout widgets — Phần 1</a> was originally published in <a href="https://medium.com/viet-flutter-developers">Viet Flutter Developers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Trải nghiệm với DartPad.dev]]></title>
            <link>https://medium.com/viet-flutter-developers/tr%E1%BA%A3i-nghi%E1%BB%87m-v%E1%BB%9Bi-dartpad-dev-7572778f000a?source=rss----bc6a68f00012---4</link>
            <guid isPermaLink="false">https://medium.com/p/7572778f000a</guid>
            <dc:creator><![CDATA[Liem Vo]]></dc:creator>
            <pubDate>Fri, 06 Dec 2019 09:13:38 GMT</pubDate>
            <atom:updated>2019-12-06T09:13:38.823Z</atom:updated>
            <content:encoded><![CDATA[<p>DartPad là một công cụ rất hữu ích cho những lập trình viên với ngôn ngữ Dart. Và do đó các bạn có thể lập trình chương Flutter với bất kì trình duyệt web qua địa chỉ <a href="https://dartpad.dev/">https://dartpad.dev/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*g76_rWsFAYyTwROR" /><figcaption>Photo by <a href="https://unsplash.com/@tonyphamvn?utm_source=medium&amp;utm_medium=referral">Tony Pham</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F1BWqtmp7Q-0%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D1BWqtmp7Q-0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F1BWqtmp7Q-0%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/8e5d8e5b646190e567a02eb3ee638abe/href">https://medium.com/media/8e5d8e5b646190e567a02eb3ee638abe/href</a></iframe><p>Khi vào trang web các bạn sẽ thấy màn hình như dưới</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*elkrFNM60THR4IzqIOg76g.png" /></figure><p>Nó sẽ có một đoạn code được viết bằng ngôn ngữ Dart để in ra</p><pre>hello 1<br>hello 2<br>hello 3<br>hello 4<br>hello 5</pre><p>Ở phần thanh công cụ như hình dưới:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/928/1*z44fa7LdkJXbrF9lcp3mxg.png" /></figure><p>Phần này sẽ có tạo một pad mới, reset lại trạng thái mặc định hoặc format code.</p><ul><li>Chọn New Pad thì bạn sẽ thấy mành hình sau</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iXNTmQOyukrqFEETIgITjA.png" /></figure><p>Dialog sẽ hỏi các bạn có muốn bỏ phần soạn thảo hiện tại không, nếu chọn cancel thì sẽ vẫn ở màn hình này, chọn ok thì sẽ xuất hiện màn hình tiếp theo sẽ chọn tạo chương trình Dart thuần tuý hay flutter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/515/1*lebRTOvjV6yXairpwLJ7pA.png" /></figure><p>Ở đây mình sẽ chọn là Flutter và đoạn code mẫu sau sẽ xuất hiện</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YqjNmEWsXk69UC72Wa1lGA.png" /></figure><p>Phần bên trái là phần soạn thảo và chúng ta co thể soạn chương trình, trong này có sẵn chương trình in ra chữ Hello, Word! Các bạn chỉ cần nhấn nút run thì sẽ thấy kết quả.</p><ul><li>Góc phải trên của DartPad, bạn sẽ thấy nút sổ xuống với chữ samples. Click vào đó thì sẽ xuất hiện nhưng chương trình ví dụ có sẵn của Dart, HTML và Flutter như hình dưới.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/231/1*LtzM9kAS1Ic2EG6uXmQxxw.png" /></figure><p>Các bạn mở lại ví dụ số 3 phần 1 <a href="https://github.com/liemvo/FlutterExamples/blob/master/flutter_vidu3/lib/phan1.dart">ở đây</a>, copy toàn bộ code và paste vào trình soạn thảo code của Dartpad và chọn run các bạn sẽ thấy kết quả như hình sau:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-v9CHCCAd7V4IYt0FRWppQ.png" /></figure><p>Góc phải ở dưới bên trái có console, document, privacy notice, send feedback:</p><ul><li>Console là nơi để in ra những phần output trong chương trình, có thể là mã lỗi, log,…</li><li>Document: là một nơi rất hữu ích giúp chúng ta có thể xem và tìm hiểu về những widget mà chưa nắm vững, ví dụ mình để cursor trên DropdownButton thì document sẽ hiện lên thông tin về DropdownButton như hình</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/933/1*FAsfm9F368QS9iP5qU_41g.png" /></figure><ul><li>Privacy notice: Nơi thông báo về những điều lệ của DartPad</li><li>Send feedback: Bạn có thể phản hồi lại những lỗi, hay góp ý với Dart.</li></ul><p>Cảm ơn các bạn đã đọc</p><h3><strong>Có thể bạn quan tâm:</strong></h3><ul><li><a href="https://medium.com/viet-flutter-developers/v%C3%AD-d%E1%BB%A5-3-c%C3%A1c-lo%E1%BA%A1i-n%C3%BAt-trong-trong-flutter-ph%E1%BA%A7n-1-fce10a7e244e">Tất tần tậc về nút bấm với Flutter Phần 1</a></li><li><a href="https://medium.com/viet-flutter-developers/v%C3%AD-d%E1%BB%A5-3-t%E1%BA%A5t-t%E1%BA%A7n-t%E1%BA%ADc-v%E1%BB%81-n%C3%BAt-b%E1%BA%A5m-ph%E1%BA%A7n-2-990f18339d32">Tất tần tậc về nút bấm với Flutter Phần 2</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7572778f000a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/viet-flutter-developers/tr%E1%BA%A3i-nghi%E1%BB%87m-v%E1%BB%9Bi-dartpad-dev-7572778f000a">Trải nghiệm với DartPad.dev</a> was originally published in <a href="https://medium.com/viet-flutter-developers">Viet Flutter Developers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ví dụ 3: Tất tần tậc về nút bấm — phần 2.]]></title>
            <link>https://medium.com/viet-flutter-developers/v%C3%AD-d%E1%BB%A5-3-t%E1%BA%A5t-t%E1%BA%A7n-t%E1%BA%ADc-v%E1%BB%81-n%C3%BAt-b%E1%BA%A5m-ph%E1%BA%A7n-2-990f18339d32?source=rss----bc6a68f00012---4</link>
            <guid isPermaLink="false">https://medium.com/p/990f18339d32</guid>
            <dc:creator><![CDATA[Liem Vo]]></dc:creator>
            <pubDate>Wed, 04 Dec 2019 09:14:45 GMT</pubDate>
            <atom:updated>2019-12-04T09:14:45.540Z</atom:updated>
            <content:encoded><![CDATA[<h3>Ví dụ 3: Tất tần tậc về nút bấm — phần 2.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cxRuU-f9MQzyYHqv" /><figcaption>Photo by <a href="https://unsplash.com/@huykutis?utm_source=medium&amp;utm_medium=referral">Huy Kutis</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Nút bấm là một thành phần thường thấy trong các ứng dụng và rất may mắn là Fluter framework đã hỗ trợ nhiều loại nút bấm khác nhau, trong bài trước chúng ta đã làm quen với 3 nút phẳng, nổi và đổ xuống (FlatButton, RaisedButton và DropdownButton). Ngày hôm nay mình sẽ giới thiệu với các bạn các nút bầm còn lại.</p><ul><li><strong>FloatingActionButon</strong> là nút tròn thường xuất hiện ở màn hình chính của ứng dụng và không xa lạ nếu bạn đã lập trình Android. Ví dụ ứng dụng Gmail trên iPhone or Android.</li><li><strong>IconButton</strong> là nút bấm với icon và sẽ có hiệu ứng với màu khi bấm.</li></ul><p>&lt;I&gt; <strong>FloatingActionButton</strong> thường được dùng với <strong>Scaffold.floatingActionButton </strong>và mỗi màn hình thường dùng với duy nhất một button loại này để tạo mới, chia sẻ hoặc đi đến một màn hình khác. Tương tự như những loại button trước nếu onPressed có giá trị null thì nút bẫm sẽ không tương tác được.</p><p><a href="https://www.youtube.com/watch?v=BDeT6FbK5Co">https://www.youtube.com/watch?v=BDeT6FbK5Co</a></p><p>Có 2 loại FloatingActionButton là chỉ có icon và loại có icon và chữ.</p><h3>FloatingActionButton chỉ icon</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IcbBGgw8reZDRWQ0Bv2Qhg.png" /><figcaption>FloatingActionButton chỉ có icon</figcaption></figure><p>Code của ví dụ trên và bạn chú ý phần chữ đậm</p><pre>import &#39;package:flutter/material.dart&#39;;</pre><pre>void main() =&gt; runApp(MyApp());</pre><pre>class MyApp extends StatelessWidget {<br>  final appTitle = &quot;Ví dụ 3&quot;;<br>  <a href="http://twitter.com/override">@override</a><br>  Widget build(BuildContext context) {<br>    return MaterialApp(<br>        debugShowCheckedModeBanner: false,<br>        theme: ThemeData(primaryColor: Colors.orange),<br>        home: <strong>Scaffold</strong>(<br>          appBar: AppBar(<br>            title: Text(appTitle<br>            ,style: TextStyle(color: Colors.white),)<br>          ),<br>          body: Center(<br>            child: Text(&#39;Hello Viet Flutter Devs&#39;)<br>          ),<br>          <strong>floatingActionButton: FloatingActionButton(<br>            onPressed: () {},<br>            child: Icon(Icons.share),<br>            backgroundColor: Colors.orange,<br>          )</strong>,<br>        )<br>    );<br>  }<br>}</pre><p><strong>Và đây là FloatingActionButton với chữ</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ARJhGWT9wjopp_V_knn4RA.png" /><figcaption>FloatingActionButton với chữ</figcaption></figure><p>Code của ví dụ trên</p><pre>import &#39;package:flutter/material.dart&#39;;</pre><pre>void main() =&gt; runApp(MyApp());</pre><pre>class MyApp extends StatelessWidget {<br>  final appTitle = &quot;Ví dụ 3&quot;;<br>  <a href="http://twitter.com/override">@override</a><br>  Widget build(BuildContext context) {<br>    return MaterialApp(<br>        debugShowCheckedModeBanner: false,<br>        theme: ThemeData(primaryColor: Colors.orange),<br>        home: Scaffold(<br>          appBar: AppBar(<br>            title: Text(appTitle<br>            ,style: TextStyle(color: Colors.white),)<br>          ),<br>          body: Center(<br>            child: Text(&#39;Hello Viet Flutter Devs&#39;)<br>          ),<br>          floatingActionButton: FloatingActionButton.extended(<br>            onPressed: () {},<br>            label: Text(&#39;Like&#39;),<br>            icon: Icon(Icons.thumb_up),<br>            backgroundColor: Colors.orange,<br>          ),<br>        )<br>    );<br>  }<br>}</pre><p>&lt;II&gt; <strong>IconButton </strong>Nút này thường được dùng ở ActionBar và cũng có thể dùng ở bất kì vị trí nào của ứng dụng. <strong>onPressed </strong>nếu khai báo là null thì nút. bấm sẽ có trạng thái disable. Yêu cầu là nút này phải có cha hay cao hơn là <strong>Material</strong>.</p><p><a href="https://www.youtube.com/watch?v=9ul5ScqPflg">https://www.youtube.com/watch?v=9ul5ScqPflg</a></p><p>Code vi du:</p><pre>import &#39;package:flutter/material.dart&#39;;</pre><pre>class IconButtonApp extends StatelessWidget {<br>  final appTitle = &quot;Ví dụ 3&quot;;<br>  <a href="http://twitter.com/override">@override</a><br>  Widget build(BuildContext context) {<br>    return MaterialApp(<br>        debugShowCheckedModeBanner: false,<br>        theme: ThemeData(primaryColor: Colors.orange),<br>        home: Scaffold(<br>          appBar: AppBar(<br>            title: Text(appTitle<br>            ,style: TextStyle(color: Colors.white),),<br>            actions: &lt;Widget&gt;[<br>              IconButton(<br>                icon: Icon(Icons.share),<br>                color: Colors.white,<br>                onPressed: () {},<br>              )<br>            ],<br>          ),<br>          body: Center(<br>            child: IconButton(<br>              icon: Icon(Icons.account_balance), <br>              color: Colors.orange,<br>              onPressed: () {},<br>              )<br>          )<br>        )<br>    );<br>  }<br>}</pre><p>và đây là kết quả</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eE-C46eltkierDXo1C3AfA.png" /></figure><p>Source code:</p><pre><a href="https://github.com/liemvo/FlutterExamples/blob/master/flutter_vidu3/lib/fab_icon_example.dart">https://github.com/liemvo/FlutterExamples/blob/master/flutter_vidu3/lib/fab_icon_example.dart</a><br><a href="https://github.com/liemvo/FlutterExamples/blob/master/flutter_vidu3/lib/fab_icon_text_example.dart">https://github.com/liemvo/FlutterExamples/blob/master/flutter_vidu3/lib/fab_icon_text_example.dart</a><br><a href="https://github.com/liemvo/FlutterExamples/blob/master/flutter_vidu3/lib/icon_button_example.dart">https://github.com/liemvo/FlutterExamples/blob/master/flutter_vidu3/lib/icon_button_example.dart</a></pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=990f18339d32" width="1" height="1" alt=""><hr><p><a href="https://medium.com/viet-flutter-developers/v%C3%AD-d%E1%BB%A5-3-t%E1%BA%A5t-t%E1%BA%A7n-t%E1%BA%ADc-v%E1%BB%81-n%C3%BAt-b%E1%BA%A5m-ph%E1%BA%A7n-2-990f18339d32">Ví dụ 3: Tất tần tậc về nút bấm — phần 2.</a> was originally published in <a href="https://medium.com/viet-flutter-developers">Viet Flutter Developers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Write for us]]></title>
            <link>https://medium.com/viet-flutter-developers/write-for-us-cf7503788c47?source=rss----bc6a68f00012---4</link>
            <guid isPermaLink="false">https://medium.com/p/cf7503788c47</guid>
            <category><![CDATA[viết]]></category>
            <dc:creator><![CDATA[Liem Vo]]></dc:creator>
            <pubDate>Wed, 04 Dec 2019 05:15:34 GMT</pubDate>
            <atom:updated>2019-12-04T05:22:10.068Z</atom:updated>
            <content:encoded><![CDATA[<h3>Viết bài</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5CemokK8PsgybTm4" /><figcaption>Photo by <a href="https://unsplash.com/@glenncarstenspeters?utm_source=medium&amp;utm_medium=referral">Glenn Carstens-Peters</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Với tiêu chí học hỏi, trao đổi và chia sẻ. Chúng tôi mong nhận được sự đóng góp của các bạn bằng việc chia sẻ bài viết.</p><h3>Ý tưởng:</h3><p>Đây là một số ý tưởng để viết bài</p><ul><li>Bài học cơ bản, khó hoặc nâng cao về ngôn ngữ Dart hoặc Flutter framework.</li><li>Những lời khuyên để một nhà lập trình viên có thể phát triển con đường nghề nghiệp của họ tốt hơn.</li><li>Một sỗ kĩ thuật chuyên sâu về debug, phân tích như: làm sao để tránh một số lỗi của junior level, google map với flutter…</li></ul><h3>Styleguide</h3><p>Hướng dẫn submit bài:</p><ul><li>Tài khoản của bạn cần có tên, hình ảnh.</li><li>Bài viết nên có tiêu đề và tiêu đề phụ.</li><li>Bạn cần loại bỏ tất các các thông tin như: sign up, new letter hoặc follow trong bài viết của bạn</li><li>Nếu bạn trích dẫn code thì cần trình dẫn qua gist và paste url vào bài viết hoặc code cần format để dễ nhìn.</li><li>Bài viết nên có cover image để dễ nhìn và thu hút người đọc. Bạn có thể dùng hình từ <a href="https://unsplash.com/">Unsplash</a>.</li><li>Cuối bài cần có đường dẫn tham khảo, source code.</li><li>Bài viết cần có ít nhất 3 phút.</li></ul><h3><strong>Gửi bài</strong></h3><ul><li>Nếu bài viết đã sẵn sàng bạn có thể <a href="https://bit.ly/2LkQx54">submit ở đây</a></li><li>Chúng tôi sẽ phản hồi trong vòng 3 ngày làm việc. Nếu chúng tôi không phản hồi thì coi như bài viết không hợp lệ.</li><li>Nếu bạn viết bài lần 2 thì không cần submit và chỉ cần chọn nhà xuất bản Việt Flutter Developer ở góc trên phải. Chúng tôi sẽ phản hồi trong vòng 24h.</li></ul><h4>Chúng tôi rất mong đợi sự đóng góp của các bạn</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf7503788c47" width="1" height="1" alt=""><hr><p><a href="https://medium.com/viet-flutter-developers/write-for-us-cf7503788c47">Write for us</a> was originally published in <a href="https://medium.com/viet-flutter-developers">Viet Flutter Developers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dear Friends,]]></title>
            <link>https://medium.com/viet-flutter-developers/dear-friends-11bfface96c1?source=rss----bc6a68f00012---4</link>
            <guid isPermaLink="false">https://medium.com/p/11bfface96c1</guid>
            <dc:creator><![CDATA[Liem Vo]]></dc:creator>
            <pubDate>Wed, 04 Dec 2019 04:51:23 GMT</pubDate>
            <atom:updated>2019-12-04T04:51:23.873Z</atom:updated>
            <content:encoded><![CDATA[<p>Viet Flutter Developer is established with hope will help the Vietnamese Developer to developer their mobile development skill by learning, sharing and contribution. We hope will receive your help and contribution.</p><p>Recently, we have been publishing a series of basic Flutter programming that is in the Vietnamese language. We continue developing and will deliver in English in the future</p><p>Chào các bạn,</p><p>Việt Flutter Developer được thành lập với mong muốn giúp các bạn làm quen, trao đổi và chia sẻ kinh nghiệm lập trình Flutter.</p><p>Cheers,</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11bfface96c1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/viet-flutter-developers/dear-friends-11bfface96c1">Dear Friends,</a> was originally published in <a href="https://medium.com/viet-flutter-developers">Viet Flutter Developers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ví dụ 3: Các loại nút trong trong Flutter — Phần 1]]></title>
            <link>https://medium.com/viet-flutter-developers/v%C3%AD-d%E1%BB%A5-3-c%C3%A1c-lo%E1%BA%A1i-n%C3%BAt-trong-trong-flutter-ph%E1%BA%A7n-1-fce10a7e244e?source=rss----bc6a68f00012---4</link>
            <guid isPermaLink="false">https://medium.com/p/fce10a7e244e</guid>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Liem Vo]]></dc:creator>
            <pubDate>Mon, 02 Dec 2019 10:05:51 GMT</pubDate>
            <atom:updated>2019-12-04T07:49:24.527Z</atom:updated>
            <content:encoded><![CDATA[<h3>Ví dụ 3: Tất tần tậc về nút bấm — Phần 1</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KbvmPUZhn5YbTV39" /><figcaption>Photo by <a href="https://unsplash.com/@danny_pham93?utm_source=medium&amp;utm_medium=referral">Doan Tuan</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F6PYA7C_jsCg%3Fstart%3D7%26feature%3Doembed%26start%3D7&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D6PYA7C_jsCg&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F6PYA7C_jsCg%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/d3e17f76ac3c8689bc01b9e67d7c8bb3/href">https://medium.com/media/d3e17f76ac3c8689bc01b9e67d7c8bb3/href</a></iframe><p>Trong ví dụ ngày hôm nay, các bạn sẽ làm quen với việc sử dụng các loại nút bấm phẳng (FlatButton), nút bấm nổi (RaisedButton) và nút bấm xổ xuống (DropButton).</p><p>Tuỳ vào công dụng và mục đích sử dụng trong ứng dụng của các bạn, thì bạn sẽ chọn nút bấm tương ứng với thiết kế bạn đầu.</p><p><strong>&lt;I&gt; FlatButton</strong> là nút bấm phẳng và theo chuẩn của thiết kế của Android. Nút bấm này có thể thay đổi màu nền, màu chữ ở trạng thái bình thường màu trạng thái không tương tác. Nút bấm có một thuộc tính con và các bạn có thể khai báo bất kì widget nào. Bạn cũng có thể thiết lập khoảng cách của con với các cạnh của nút bấm hay còn gọi là padding.</p><p><strong><em>Code ví dụ</em></strong></p><pre>import &#39;package:flutter/material.dart&#39;;</pre><pre>void main() =&gt; runApp(MyApp());</pre><pre>class MyApp extends StatelessWidget {<br>  final appTitle = &quot;Ví dụ 3&quot;;<br>  <a href="http://twitter.com/override">@override</a><br>  Widget build(BuildContext context) {<br>    return MaterialApp(<br>        debugShowCheckedModeBanner: false,<br>        theme: ThemeData(primaryColor: Colors.orange),<br>        home: Scaffold(<br>            appBar: AppBar(<br>                title: Text(<br>              appTitle,<br>              style: TextStyle(color: Colors.white),<br>            )),<br>            body: Center(<br>                child: FlatButton(<br>                  color: Colors.deepOrange,<br>                  textColor: Colors.white,<br>                  disabledColor: Colors.grey,<br>                  disabledTextColor: Colors.black,<br>                  child: Text(&#39;Flat Button&#39;, style: TextStyle(fontSize: 20.0),),<br>                  onPressed: () {},<br>                  padding: EdgeInsets.all(8.0),<br>                  splashColor: Colors.green,<br>                  shape: RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(4))),<br>                ),<br>            )<br>        )<br>      );<br>  }<br>}</pre><p>Nếu <strong>onPressed</strong> set null thì button sẽ ở trạng thái không hoạt động (disabled)</p><p><strong>&lt;II&gt; RaisedButton</strong> cơ bản là gần giống như <strong>FlatButton </strong>nhưng có độ nổi so với background. Một điều lưu ý là không nên dùng RaisedButton với các widget nổi như dialog hay card.</p><p><strong><em>Code ví dụ</em></strong>:</p><pre>import &#39;package:flutter/material.dart&#39;;</pre><pre>void main() =&gt; runApp(MyApp());</pre><pre>class MyApp extends StatelessWidget {<br>  final appTitle = &quot;Ví dụ 3&quot;;<br>  <a href="http://twitter.com/override">@override</a><br>  Widget build(BuildContext context) {<br>    return MaterialApp(<br>        debugShowCheckedModeBanner: false,<br>        theme: ThemeData(primaryColor: Colors.orange),<br>        home: Scaffold(<br>            appBar: AppBar(<br>                title: Text(<br>              appTitle,<br>              style: TextStyle(color: Colors.white),<br>            )),<br>            body: Center(<br>                child: RaisedButton(<br>                  color: Colors.deepOrange,<br>                  textColor: Colors.white,<br>                  disabledColor: Colors.grey,<br>                  disabledTextColor: Colors.black,<br>                  elevation: 16,<br>                  child: Text(&#39;Raised Button&#39;, style: TextStyle(fontSize: 20.0),),<br>                  onPressed: () {},<br>                  padding: EdgeInsets.all(8.0),<br>                  splashColor: Colors.green,<br>                  shape: RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(4))),<br>                ),<br>            )<br>        )<br>      );<br>  }<br>}</pre><p>&lt;III&gt; <strong>DropdownButton</strong> là nút bấm xổ xuống 1 danh sách và bạn có thể chọn giá trị từ đó. Ở đây các bạn cần quan tâm đến các thuộc tính sau của widget này:</p><ol><li>value: giá trị có thể thay đổi</li><li>icon: Icon ở nút bấm</li><li>elevation: độ nổi</li><li>style: Style của text</li><li>onChanged: phần xử lý thay đổi</li><li>items: Những đối tượng được đưa vào danh sách xổ xuống</li></ol><p>Code Ví dụ:</p><pre>import &#39;package:flutter/material.dart&#39;;</pre><pre>void main() =&gt; runApp(MyApp());</pre><pre>class MyApp extends StatefulWidget {<br>  <a href="http://twitter.com/override">@override</a><br>  _MyAppState createState() =&gt; _MyAppState();<br>}</pre><pre>class _MyAppState extends State&lt;MyApp&gt; {<br>  final appTitle = &quot;Ví dụ 3&quot;;</pre><pre>String dropdownValue = &#39;Blue&#39;;</pre><pre><a href="http://twitter.com/override">@override</a><br>  Widget build(BuildContext context) {<br>    return MaterialApp(<br>        debugShowCheckedModeBanner: false,<br>        theme: ThemeData(primaryColor: Colors.orange),<br>        home: Scaffold(<br>            appBar: AppBar(<br>                title: Text(<br>              appTitle,<br>              style: TextStyle(color: Colors.white),<br>            )),<br>            body: Center(<br>              child: DropdownButton&lt;String&gt;(<br>                value: dropdownValue,<br>                icon: Icon(Icons.arrow_downward, color: Colors.deepOrangeAccent,),<br>                iconSize: 24,<br>                elevation: 16,<br>                style: TextStyle(color: Colors.deepOrangeAccent),<br>                underline: Container(<br>                  height: 2,<br>                  color: Colors.deepOrangeAccent,<br>                ),<br>                onChanged: (String newValue) {<br>                  setState(() {<br>                    dropdownValue = newValue;<br>                  });<br>                },<br>                items: &lt;String&gt;[&#39;Blue&#39;, &#39;Red&#39;, &#39;Green&#39;, &#39;Yellow&#39;]<br>                    .map&lt;DropdownMenuItem&lt;String&gt;&gt;((String value) {<br>                  return DropdownMenuItem&lt;String&gt;(<br>                    value: value,<br>                    child: Text(value),<br>                  );<br>                }).toList(),<br>              ),<br>            )));<br>  }<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*ykUwa58txeZfTuPgZs07_g.jpeg" /></figure><p>Cảm ơn các bạn đã theo dõi</p><p>Code: <a href="https://github.com/liemvo/FlutterExamples/tree/master/flutter_vidu3">https://github.com/liemvo/FlutterExamples/tree/master/flutter_vidu3</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fce10a7e244e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/viet-flutter-developers/v%C3%AD-d%E1%BB%A5-3-c%C3%A1c-lo%E1%BA%A1i-n%C3%BAt-trong-trong-flutter-ph%E1%BA%A7n-1-fce10a7e244e">Ví dụ 3: Các loại nút trong trong Flutter — Phần 1</a> was originally published in <a href="https://medium.com/viet-flutter-developers">Viet Flutter Developers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ví dụ số 2: RaisedButton, Icon, Column Widget và StatefulWidget]]></title>
            <link>https://medium.com/viet-flutter-developers/v%C3%AD-d%E1%BB%A5-s%E1%BB%91-2-raisedbutton-icon-column-widget-v%C3%A0-statefulwidget-93357133678d?source=rss----bc6a68f00012---4</link>
            <guid isPermaLink="false">https://medium.com/p/93357133678d</guid>
            <dc:creator><![CDATA[Liem Vo]]></dc:creator>
            <pubDate>Sat, 30 Nov 2019 09:55:16 GMT</pubDate>
            <atom:updated>2019-12-04T06:19:11.631Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0HbbPTE3J3jpqJy1" /><figcaption>Photo by <a href="https://unsplash.com/@jentheodore?utm_source=medium&amp;utm_medium=referral">Jen Theodore</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Trong ví dụ này các bạn sẽ xây dựng một màn hình cơ bản như bên dưới.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FXTntFVnb3n8%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DXTntFVnb3n8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FXTntFVnb3n8%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/5cfb3a6cea69f949b19bdcce4f8107d4/href">https://medium.com/media/5cfb3a6cea69f949b19bdcce4f8107d4/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*uj2QlwnYKEVlS68VBxmtnQ.jpeg" /></figure><p>Nút bấm và icon riêng biệt do đó mình dùng Column để hiển thị các widget con theo dạng cột.</p><p>Trong thực tế các bạn có thể dùng các loại nút bấm khác nhau đã được hỗ trợ bởi Flutter framework.</p><ul><li><strong>RaiseButton</strong>: Nút chuẩn của material design và phần nổi sẽ hiện rõ khi bấm.</li><li><strong>FlatButton: </strong>material design button không có phần bóng.</li><li><strong>DropdownButton</strong>: có dạng nút xổ xuống để lựa chọn</li><li><strong>FloatingActionButton: </strong>Nút tròn với icon chính giữa, giống như nút ở trong ứng dụng Gmail.</li><li><strong>IconButton</strong>: Nút chỉ có Icon</li><li><strong>RawMaterialButton</strong>: Nút dựa trên <a href="https://material.io/design/components/buttons.html">https://material.io/design/components/buttons.html</a></li></ul><p>Code của ví dụ:</p><pre>import &#39;package:flutter/material.dart&#39;;</pre><pre>void main() =&gt; runApp(MyApp());</pre><pre>class MyApp extends StatefulWidget {<br>  <a href="http://twitter.com/override">@override</a><br>  _MyAppState createState() =&gt; _MyAppState();<br>}</pre><pre>class _MyAppState extends State&lt;MyApp&gt; {<br>  bool isFavorite = false;</pre><pre><a href="http://twitter.com/override">@override</a><br>  Widget build(BuildContext context) {<br>    <br>    return MaterialApp(<br>      debugShowCheckedModeBanner: false,<br>      theme: ThemeData(primaryColor: Colors.orange),<br>      home: Scaffold(<br>        appBar: AppBar(<br>            title: Text(<br>          &#39;Stateless&#39;,<br>          style: TextStyle(color: Colors.white),<br>        )),<br>        body: Center(<br>          child: Column(<br>            children: &lt;Widget&gt;[<br>              RaisedButton(<br>                onPressed: () {<br>                  setState(() {<br>                    isFavorite = !isFavorite;<br>                  });<br>                },<br>                child: Text(&#39;Toggle&#39;),<br>              ),<br>              Icon(<br>                isFavorite ? Icons.favorite : Icons.favorite_border,<br>                color: Colors.purple,<br>              )<br>            ],<br>          ),<br>        ),<br>      ),<br>    );<br>  }<br>}</pre><p>Repo: <a href="https://github.com/liemvo/FlutterExamples/tree/master/flutter_stateful">https://github.com/liemvo/FlutterExamples/tree/master/flutter_stateful</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93357133678d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/viet-flutter-developers/v%C3%AD-d%E1%BB%A5-s%E1%BB%91-2-raisedbutton-icon-column-widget-v%C3%A0-statefulwidget-93357133678d">Ví dụ số 2: RaisedButton, Icon, Column Widget và StatefulWidget</a> was originally published in <a href="https://medium.com/viet-flutter-developers">Viet Flutter Developers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Học Flutter qua ví dụ]]></title>
            <link>https://medium.com/viet-flutter-developers/h%E1%BB%8Dc-flutter-qua-v%C3%AD-d%E1%BB%A5-da7a3faf8379?source=rss----bc6a68f00012---4</link>
            <guid isPermaLink="false">https://medium.com/p/da7a3faf8379</guid>
            <dc:creator><![CDATA[Liem Vo]]></dc:creator>
            <pubDate>Sat, 30 Nov 2019 08:21:16 GMT</pubDate>
            <atom:updated>2019-12-04T05:29:49.031Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fvideoseries%3Flist%3DPLV5fsKZCPJNsq2owQp1qLrlHNHNbVveAi&amp;url=https%3A%2F%2Fwww.youtube.com%2Fplaylist%3Flist%3DPLV5fsKZCPJNsq2owQp1qLrlHNHNbVveAi&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FNH_uMfhXHs4%2Fhqdefault.jpg%3Fsqp%3D-oaymwEWCKgBEF5IWvKriqkDCQgBFQAAiEIYAQ%3D%3D%26rs%3DAOn4CLDh8vqawPt3esLanFCEKzglHvi9jw&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="853" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/6c1860469ca8e807a286a40fcf48c157/href">https://medium.com/media/6c1860469ca8e807a286a40fcf48c157/href</a></iframe><p>Repo: <a href="https://github.com/liemvo/FlutterExamples">https://github.com/liemvo/FlutterExamples</a></p><ol><li><a href="https://medium.com/viet-flutter-developers/v%C3%AD-d%E1%BB%A5-s%E1%BB%91-1-c54be5b4f8c6">Ví dụ 1: Dùng Material, Scaffold, AppBar, Center và Text</a>.</li><li><a href="https://medium.com/viet-flutter-developers/v%C3%AD-d%E1%BB%A5-s%E1%BB%91-2-raisedbutton-icon-column-widget-v%C3%A0-statefulwidget-93357133678d">Ví dụ 2: Dùng Column, RaisedButton, Icon Widget và Stateful</a></li><li><a href="https://medium.com/viet-flutter-developers/v%C3%AD-d%E1%BB%A5-3-c%C3%A1c-lo%E1%BA%A1i-n%C3%BAt-trong-trong-flutter-ph%E1%BA%A7n-1-fce10a7e244e">Ví dụ 3: Các nút bấm phần 1</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da7a3faf8379" width="1" height="1" alt=""><hr><p><a href="https://medium.com/viet-flutter-developers/h%E1%BB%8Dc-flutter-qua-v%C3%AD-d%E1%BB%A5-da7a3faf8379">Học Flutter qua ví dụ</a> was originally published in <a href="https://medium.com/viet-flutter-developers">Viet Flutter Developers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>