<?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 Kyaw San Oo on Medium]]></title>
        <description><![CDATA[Stories by Kyaw San Oo on Medium]]></description>
        <link>https://medium.com/@kyawsanoo-androider?source=rss-96819c13e67------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*KTErNmkJSKH7N-dofFTfPg.jpeg</url>
            <title>Stories by Kyaw San Oo on Medium</title>
            <link>https://medium.com/@kyawsanoo-androider?source=rss-96819c13e67------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 01:38:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kyawsanoo-androider/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[Sample apps for CRUD operations]]></title>
            <link>https://kyawsanoo-androider.medium.com/samples-apps-for-crud-operations-1238439a97ad?source=rss-96819c13e67------2</link>
            <guid isPermaLink="false">https://medium.com/p/1238439a97ad</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[android-native-kotlin]]></category>
            <dc:creator><![CDATA[Kyaw San Oo]]></dc:creator>
            <pubDate>Sat, 23 Dec 2023 15:06:53 GMT</pubDate>
            <atom:updated>2024-01-05T13:25:48.882Z</atom:updated>
            <content:encoded><![CDATA[<p>Currently I have free times and making sample apps for state management usages and networking with api’s CRUD operations for beginners.</p><p>Here is the list of the source code of them on my github and check it now.</p><ol><li>Android Native App for CRUD operations</li></ol><p>A simple todo app that interacts with Api CRUD operations with Android Jetpack Compose, Kotlin Coroutines &amp; Flow, Dagger Hilt, Retrofit And MVVM pattern.</p><p>Link: <a href="https://github.com/kyawsanoo/TodoApp">https://github.com/kyawsanoo/TodoApp</a></p><p>2. Flutter App — with provider, http packages</p><p>A Flutter Todo App that interacts with Api’s CRUD operations using provider and http packages.</p><p>Link: <a href="https://github.com/kyawsanoo/TodoApp-Flutter">https://github.com/kyawsanoo/TodoApp-Flutter</a></p><p>3. Flutter App — with dio, json-serializable, provider, http packages</p><p>A flutter project with repository pattern MVVM style, network calls with dio, json-serializable and app state with provider.</p><p>4. Flutter App — with getX and http client GetConnect</p><p>A Flutter app with getX for it’s app state and dependency injection, getX’s page route and getX’s interaction with api CRUD operations.</p><p>Link: <a href="https://github.com/kyawsanoo/flutter_getx">https://github.com/kyawsanoo/flutter_getx</a></p><p>5. Flutter App — with Bloc and http packages</p><p>A Flutter App using flutter_bloc as its state management and interactions with API’s CRUD operations.</p><p>Link: <a href="https://github.com/kyawsanoo/flutter_crud_bloc">https://github.com/kyawsanoo/flutter_crud_bloc</a></p><p>6. React-native App networking with fetch</p><p>A simple react-native app with js for crud operations using fetch.</p><p>Link: <a href="https://github.com/kyawsanoo/ReactNativeJSApp">https://github.com/kyawsanoo/ReactNativeJSApp</a></p><p>Hoping something help you to enhance your app development journey.</p><p>Thanks for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1238439a97ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Test Dart Programming Knowledge]]></title>
            <link>https://kyawsanoo-androider.medium.com/how-to-test-dart-programming-knowledge-b577a8027245?source=rss-96819c13e67------2</link>
            <guid isPermaLink="false">https://medium.com/p/b577a8027245</guid>
            <category><![CDATA[dart]]></category>
            <dc:creator><![CDATA[Kyaw San Oo]]></dc:creator>
            <pubDate>Thu, 31 Dec 2020 13:04:02 GMT</pubDate>
            <atom:updated>2020-12-31T22:41:46.274Z</atom:updated>
            <content:encoded><![CDATA[<h3>Basic Test for your Dart programming knowledge</h3><p>This is basic code test for your Dart Programming Knowledge. Questions are mostly collected from Dart Tutorials and some are my own. Use Dart Pad and copy paste them and have a try it now.</p><ol><li><strong>What is the output:</strong></li></ol><p>main() {</p><p>var x = null;</p><p>print (x ?? “Default text”);</p><p>x ??= “Hello”;</p><p>print(x?.toString());</p><p>}</p><p><strong>Ans</strong>:</p><p>Default text</p><p>Hello</p><p>2. <strong>How do you think the following code running?</strong></p><p>void main(){</p><p>const i = 0;</p><p>i = i+1;</p><p>print(i);</p><p>}</p><p>Ans:</p><p>Not running. Because of const type. If the variable i is of dynamic or var type, the code will be running.</p><p>3.<strong>What is the output?</strong></p><p>void main(){<br>var a = 0;<br>print(“‘a++’ ${a++} and ‘a’ $a”);</p><p>}</p><p><strong>Ans:</strong></p><p>‘a++’ 0 and ‘a’ 1</p><p>4. <strong>What is the output of the following</strong></p><p>void main(){</p><p>var myList = [“kyaw”, 0, 0.5];</p><p>myList[1] = “san oo”;</p><p>for(var i in myList){</p><p>print(i);</p><p>}</p><p>}</p><p><strong>Ans</strong>:</p><p>kyaw</p><p>san oo</p><p>0.5</p><p>5.<strong>What is the output?</strong></p><p>void main(){</p><p>print(sum(num2: “san oo”, num1: “kyaw”));</p><p>}</p><p>dynamic sum({var num1, var num2}) =&gt; num1 + num2;</p><p><strong>Ans</strong>:</p><p>kyaw san oo</p><p>6. <strong>Can you correct the following code?</strong></p><p>void main() async{</p><p>print(sum(num2: “san oo”, num1: “kyaw”));</p><p>}</p><p>dynamic sum(var num1, var num2) =&gt; num1 + num2;</p><p><strong>Ans:</strong></p><p>dynamic sum({var num1, var num2}) =&gt; num1 + num2;</p><p>7.<strong>What is the output?</strong></p><p>void main(){</p><p>Test test = Test(1, 2);</p><p>print(test.b);</p><p>}</p><p>class Test{</p><p>int a;</p><p>int b;</p><p>Test(int a, int b){</p><p>this.a = a;</p><p>b = b;</p><p>}</p><p>}</p><p><strong>Ans</strong>:</p><p>null</p><p>8. <strong>What is the output?</strong></p><p>void main(){</p><p>Test test = Test.fromMap(&lt;String, int&gt;{“a” : 1, “b”:2});</p><p>test.printTest();</p><p>}</p><p>class Test{</p><p>int a;</p><p>int b;</p><p>Test(this.a, this.b);</p><p>Test.fromMap(Map&lt;String, int&gt; map){</p><p>this.a = map[“a”];</p><p>this.b = map[“b”];</p><p>}</p><p>printTest() =&gt; print(“$a + $b”);</p><p>}</p><p><strong>Ans</strong>:</p><p>1 + 2</p><p>9.<strong>What is the output?</strong></p><p>void main(){</p><p>Test test = Test(200, 100);</p><p>test.printTest();</p><p>print(test.pointA);</p><p>}</p><p>class Test{</p><p>int a;</p><p>int b;</p><p>Test(this.a, this.b);</p><p>int get pointA =&gt; this.a;</p><p>int get pointB =&gt; this.b;</p><p>printTest() =&gt; print(“$a + $b”);</p><p>}</p><p><strong>Ans</strong>:</p><p>200 + 100</p><p>200</p><p>10.<strong>What is the output?</strong></p><p>void main(){</p><p>Test test = Test(100, 200);</p><p>test.setA= 100;</p><p>test.setB= 200;</p><p>test.printTest();</p><p>print(test.pointA);</p><p>print(test.getMap());</p><p>Test.fromMap(&lt;String, int&gt; {“a”:20, “b”:30});</p><p>}</p><p>class Test{</p><p>int a;</p><p>int b;</p><p>Test(this.a, this.b);</p><p>Test.fromMap(Map&lt;String, int&gt; map){</p><p>this.a = map[“a”];</p><p>this.b = map[“b”];</p><p>printTest();</p><p>}</p><p>int get pointA =&gt; this.a;</p><p>int get pointB =&gt; this.b;</p><p>set setA(var a) =&gt; this.a = a;</p><p>set setB(var b) =&gt; this.b = b;</p><p>getMap()=&gt; &lt;String, int&gt; {“a”: this.a, “b”: this.b};</p><p>printTest() =&gt; print(“$a + $b”);</p><p>}</p><p><strong>Ans</strong>:</p><p>100 + 200</p><p>100</p><p>{a: 100, b: 200}</p><p>20 + 30</p><p>10.<strong>What is the output of the following code?</strong></p><p>void main() {</p><p>Musician musician = new Musician();</p><p>musician.makePerformance();</p><p>}</p><p>abstract class Performer{</p><p>makePerformance();</p><p>}</p><p>mixin Dancer{</p><p>perform(){</p><p>print(“Dance Dance Dance”);</p><p>}</p><p>}</p><p>mixin Singer{</p><p>perform(){</p><p>print(“Laaaaa… La…. La…”);</p><p>}</p><p>}</p><p>class Musician extends Performer with Singer, Dancer{</p><p>makePerformance(){</p><p>perform();</p><p>}</p><p>}</p><p><strong>Ans</strong>:</p><p>Dance Dance Dance</p><p>11. <strong>How to implement multiple interfaces?</strong></p><p><strong>Ans</strong>:</p><p>void main() {</p><p>Bird bird = new Bird(“I am a Bird.”);</p><p>bird.fly();</p><p>Duck duck = new Duck(“I am a Duck.”);</p><p>duck.fly();</p><p>duck.swim();</p><p>}</p><p>class Animal{</p><p>String definition;</p><p>Animal(this.definition){</p><p>print(this.definition);</p><p>}</p><p>}</p><p>abstract class Flyer{</p><p>fly();</p><p>}</p><p>abstract class Swimmer{</p><p>swim();</p><p>}</p><p>class Bird extends Animal implements Flyer{</p><p>Bird(String definition): super(definition);</p><p>@override</p><p>fly(){</p><p>print(“I can fly.”);</p><p>}</p><p>}</p><p>class Duck extends Animal implements Flyer, Swimmer{</p><p>Duck(String definition): super(definition);</p><p>@override</p><p>fly(){</p><p>print(“I can fly.”);</p><p>}</p><p>@override</p><p>swim(){</p><p>print(“I can swim.”);</p><p>}</p><p>}</p><p>12. <strong>How to implement multiple interfaces using Dart’s mixin?</strong></p><p><strong>Ans</strong>:</p><p>void main() {</p><p>Bird bird = new Bird(&quot;I am a Bird.&quot;);</p><p>bird.fly();</p><p>Duck duck = new Duck(&quot;I am a Duck.&quot;);</p><p>duck.fly();</p><p>duck.swim();</p><p>}</p><p>class Animal{</p><p>String definition;</p><p>Animal(this.definition){</p><p>print(this.definition);</p><p>}</p><p>}</p><p>abstract class Flyer{</p><p>fly(){</p><p>print(&quot;I can fly&quot;);</p><p>}</p><p>}</p><p>abstract class Swimmer{</p><p>swim(){</p><p>print(&quot;I can swim&quot;);</p><p>}</p><p>}</p><p>class Bird extends Animal with Flyer{</p><p>Bird(String definition): super(definition);</p><p>}</p><p>class Duck extends Animal with Flyer, Swimmer{</p><p>Duck(String definition): super(definition);</p><p>}</p><p>13. <strong>What is the output of the following code?</strong></p><p><strong>Ans</strong>:</p><p>void main(){</p><p>print(“fetching order…”);</p><p>print(loadTask1());</p><p>}</p><p>String loadTask1(){</p><p>var order = fetchOrder();</p><p>return ‘your order is $order’;</p><p>}</p><p>Future&lt;String&gt; fetchOrder() =&gt;</p><p>Future.delayed(Duration(seconds: 2), () =&gt; “Order 123”);</p><p><strong>Ans</strong>:</p><p>fetching order…</p><p>your order is Instance of ‘_Future&lt;String&gt;’</p><p>14.<strong> How can rewrite the above code using async &amp; await?</strong></p><p><strong>Ans:</strong></p><p>void main() async{</p><p>print(“fetching order…”);</p><p>print(await loadTask1());</p><p>}</p><p>Future&lt;String&gt; loadTask1() async{</p><p>var order = await fetchOrder();</p><p>return order;</p><p>}</p><p>Future&lt;String&gt; fetchOrder(){</p><p>return Future.delayed(Duration(seconds: 2), () =&gt; “Order 123”);</p><p>}</p><p>15. <strong>Add exception in async &amp; await.</strong></p><p><strong>Ans:</strong></p><p>void main() async{</p><p>print(“fetching order…”);</p><p>try{</p><p>print(await loadTask1());</p><p>}catch(err){</p><p>print(“caught exception $err” );</p><p>}</p><p>}</p><p>Future&lt;String&gt; loadTask1() async{</p><p>var order = await fetchOrder();</p><p>return order;</p><p>}</p><p>Future&lt;String&gt; fetchOrder(){</p><p>var str = Future.delayed(Duration(seconds: 2), () =&gt; throw “unknown exception”);</p><p>return str;</p><p>}</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b577a8027245" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>