<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: kenjmoj</title>
    <description>The latest articles on Forem by kenjmoj (@kenjmoj).</description>
    <link>https://forem.com/kenjmoj</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F215879%2Fdf7c0719-c3c4-4e02-adb2-28506eb81280.jpg</url>
      <title>Forem: kenjmoj</title>
      <link>https://forem.com/kenjmoj</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/kenjmoj"/>
    <language>en</language>
    <item>
      <title>iOS/Android icon path</title>
      <dc:creator>kenjmoj</dc:creator>
      <pubDate>Fri, 17 Apr 2020 03:53:12 +0000</pubDate>
      <link>https://forem.com/kenjmoj/ios-android-icon-path-4lde</link>
      <guid>https://forem.com/kenjmoj/ios-android-icon-path-4lde</guid>
      <description>&lt;p&gt;A note to where you put your icon images when developing (using appicon.co generated images)&lt;/p&gt;

&lt;p&gt;Android&lt;br&gt;
/android/app/src/main/res&lt;br&gt;
*replace the folder mipmap-hdpi, mipmap-mdpi, mipmap-xhdpi, mipmap-xxhdpi and, mipmap-xxxhdpi with the folders generated by appicon.co&lt;/p&gt;

&lt;p&gt;iOS&lt;br&gt;
/ios/Runner/Assets.xcassets&lt;br&gt;
*replace the folder AppIcon.appiconset with the folder generated by appicon.co&lt;/p&gt;

</description>
      <category>ios</category>
      <category>android</category>
      <category>icon</category>
      <category>flutter</category>
    </item>
    <item>
      <title>Xcode and iOS compatible version </title>
      <dc:creator>kenjmoj</dc:creator>
      <pubDate>Fri, 17 Apr 2020 03:42:01 +0000</pubDate>
      <link>https://forem.com/kenjmoj/xcode-and-ios-compatible-version-i5e</link>
      <guid>https://forem.com/kenjmoj/xcode-and-ios-compatible-version-i5e</guid>
      <description>&lt;p&gt;A quick note to what version should your Xcode is, in order to run your app during development.&lt;/p&gt;

&lt;p&gt;Xcode &lt;em&gt;major&lt;/em&gt; version MUST be 2 behind, and &lt;em&gt;minor&lt;/em&gt; has to be equal or ahead from your iOS version.&lt;/p&gt;

&lt;p&gt;e.g. &lt;br&gt;
Xcode version 11.2.1 and iOS version 13.2 --&amp;gt; Compatible!&lt;br&gt;
Xcode version 10.1 and iOS version 13.1 --&amp;gt; Not compatible!&lt;br&gt;
Xcode version 11.4 and iOS version 13.3 --&amp;gt; Not compatible!&lt;/p&gt;

&lt;p&gt;To check your iOS version, go to Settings/General/About&lt;br&gt;
and for your Xcode, either on the first screen (where it says Version), or    at about Xcode window.&lt;/p&gt;

</description>
      <category>ios</category>
      <category>xcode</category>
    </item>
    <item>
      <title>Using Git - Steps using with Visual Studio Code / Flutter</title>
      <dc:creator>kenjmoj</dc:creator>
      <pubDate>Mon, 26 Aug 2019 15:28:00 +0000</pubDate>
      <link>https://forem.com/kenjmoj/git-simplified-using-visual-studio-code-flutter-lhe</link>
      <guid>https://forem.com/kenjmoj/git-simplified-using-visual-studio-code-flutter-lhe</guid>
      <description>&lt;p&gt;Git is confusing. I am aware hot useful it is, but often I forget how to use it (especially if programming is not your day job). Hence I am documenting here how to use it ,especially when using with Visual Studio Code for Flutter.&lt;br&gt;
I am a novice Git user, so I hope to update this page while learning how to fully use it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Git Basics of the Basics
&lt;/h2&gt;

&lt;p&gt;First, if you don't know what Git is in the first place, visit pages like this one - &lt;a href="https://www.freecodecamp.org/news/learn-the-basics-of-git-in-under-10-minutes-da548267cc91/"&gt;https://www.freecodecamp.org/news/learn-the-basics-of-git-in-under-10-minutes-da548267cc91/&lt;/a&gt;&lt;br&gt;
and there are lots more available over else where.&lt;/p&gt;

&lt;h2&gt;
  
  
  Git Basics
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Git Directories
&lt;/h3&gt;

&lt;p&gt;Keep in mind that there are three directories in git.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Your &lt;strong&gt;Working Directory&lt;/strong&gt;, essentially the folder where you are currently coding&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;Index&lt;/strong&gt; folder, this is where you &lt;strong&gt;stage&lt;/strong&gt; your code&lt;/li&gt;
&lt;li&gt;Finally the &lt;strong&gt;Head&lt;/strong&gt;, this is where the code resides once you &lt;strong&gt;commit&lt;/strong&gt; it&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  The Flow
&lt;/h3&gt;

&lt;p&gt;Here is a basic flow when using git&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create a Repository&lt;/li&gt;
&lt;li&gt;Make changes to your code&lt;/li&gt;
&lt;li&gt;Stage code (this is when you move your current code to the &lt;strong&gt;Index&lt;/strong&gt;)&lt;/li&gt;
&lt;li&gt;Commit code (the code now is in the &lt;strong&gt;Head&lt;/strong&gt;)&lt;/li&gt;
&lt;li&gt;Push code (Finally, this pushes your code to the remote repository)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;simple.&lt;/p&gt;

&lt;h2&gt;
  
  
  Detailed Steps using VSCode/Flutter
&lt;/h2&gt;

&lt;h3&gt;
  
  
  For new Projects
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Create Flutter project&lt;/li&gt;
&lt;li&gt;Go to Source Control&lt;/li&gt;
&lt;li&gt;Click the plus sign (Initialize Repository)&lt;/li&gt;
&lt;li&gt;Select the project folder you just created&lt;/li&gt;
&lt;li&gt;Notice on the left pane, files are being put in to repository&lt;/li&gt;
&lt;li&gt;Hover on Changes, then click the plus sign (Stage All Changes)&lt;/li&gt;
&lt;li&gt;Click on the check sign (Commit)&lt;/li&gt;
&lt;li&gt;Go to GitHub&lt;/li&gt;
&lt;li&gt;Create a repository&lt;/li&gt;
&lt;li&gt;Copy your repository URL&lt;/li&gt;
&lt;li&gt;Go back to VSCode&lt;/li&gt;
&lt;li&gt;Open the Command Palette&lt;/li&gt;
&lt;li&gt;Execute Git: Add Remote&lt;/li&gt;
&lt;li&gt;Specify a name (e.g. origin)&lt;/li&gt;
&lt;li&gt;Enter your repository URL, then enter&lt;/li&gt;
&lt;li&gt;Now push your code! Click the three dotted icon, select Push&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>git</category>
      <category>flutter</category>
    </item>
    <item>
      <title>Flutter/Dart - adding a value of a list to a list </title>
      <dc:creator>kenjmoj</dc:creator>
      <pubDate>Thu, 22 Aug 2019 15:38:14 +0000</pubDate>
      <link>https://forem.com/kenjmoj/flutter-dart-adding-a-value-of-a-list-to-a-list-jeo</link>
      <guid>https://forem.com/kenjmoj/flutter-dart-adding-a-value-of-a-list-to-a-list-jeo</guid>
      <description>&lt;p&gt;that is,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;...
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Yep, that's it. That's the code. This is the spread operator.&lt;/p&gt;

&lt;p&gt;Let's assume you have a list "List", and you want to take the value out of this list and add those value to the surrounding list. It will look something like this,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;children: [
  ...List

]
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;above will take out the value inside the List and add it to the children:&lt;/p&gt;

</description>
      <category>flutter</category>
      <category>dart</category>
    </item>
    <item>
      <title>Setting up Flutter dev environment for MacOS/iOS</title>
      <dc:creator>kenjmoj</dc:creator>
      <pubDate>Wed, 21 Aug 2019 12:26:36 +0000</pubDate>
      <link>https://forem.com/kenjmoj/setting-up-flutter-dev-environment-for-macos-ios-3pla</link>
      <guid>https://forem.com/kenjmoj/setting-up-flutter-dev-environment-for-macos-ios-3pla</guid>
      <description>&lt;p&gt;Visit below for more details,&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flutter.dev/docs/get-started/install/macos#update-your-path"&gt;https://flutter.dev/docs/get-started/install/macos#update-your-path&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Overview
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;Gather all required tools&lt;/li&gt;
&lt;li&gt;Install Flutter SDK&lt;/li&gt;
&lt;li&gt;Update path&lt;/li&gt;
&lt;li&gt;Install Xcode, run the following
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;xcode-select &lt;span class="nt"&gt;--switch&lt;/span&gt; /Applications/Xcode.app/Contents/Developer
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Run a shell, then execute&lt;br&gt;
&lt;br&gt;
 &lt;code&gt;flutter doctor&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
 follow listed steps on the result&lt;/p&gt;
&lt;h5&gt;
  
  
  Notes:
&lt;/h5&gt;

&lt;p&gt;Launch an iOS simulator&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;open -a Simulator
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



</description>
      <category>flutter</category>
    </item>
  </channel>
</rss>
