<?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>DEV Community: Melvin S</title>
    <description>The latest articles on DEV Community by Melvin S (@mewben).</description>
    <link>https://dev.to/mewben</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%2F243084%2F55ee5e0a-3e72-4377-a95b-a0d2162975fa.jpeg</url>
      <title>DEV Community: Melvin S</title>
      <link>https://dev.to/mewben</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mewben"/>
    <language>en</language>
    <item>
      <title>[Shortcut] Run function test in Golang and VsCode</title>
      <dc:creator>Melvin S</dc:creator>
      <pubDate>Thu, 16 Apr 2020 12:55:30 +0000</pubDate>
      <link>https://dev.to/mewben/shortcut-run-function-test-in-golang-and-vscode-ljh</link>
      <guid>https://dev.to/mewben/shortcut-run-function-test-in-golang-and-vscode-ljh</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fjwad1jsqc4r4kkhbdq1q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fjwad1jsqc4r4kkhbdq1q.png" alt="Simple Go Test File"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;No intro.&lt;/p&gt;

&lt;p&gt;I'm tired of always clicking the &lt;code&gt;Run Test&lt;/code&gt; above the function test. So I thought, there must be a shortcut to this. lol&lt;/p&gt;

&lt;h1&gt;
  
  
  Steps I took:
&lt;/h1&gt;

&lt;ol&gt;
&lt;li&gt;
Ctrl + Shift + P
&lt;/li&gt;
&lt;li&gt;Keyboard Shortcuts&lt;/li&gt;
&lt;li&gt;Search "&lt;em&gt;test&lt;/em&gt;"&lt;/li&gt;
&lt;li&gt;Double click on &lt;code&gt;go.test.cursor&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Set your own keyboard shortcut. I went with Option + t
&lt;/li&gt;
&lt;li&gt;Place the cursor anywhere inside the test function and run the test shortcut&lt;/li&gt;
&lt;li&gt;Voila!&lt;/li&gt;
&lt;/ol&gt;

&lt;h1&gt;
  
  
  Bonus
&lt;/h1&gt;

&lt;p&gt;You can also set a shortcut on &lt;code&gt;go.test.file&lt;/code&gt; to run all the tests in the opened file. I set mine to Option + Shift + T&lt;/p&gt;

</description>
      <category>go</category>
      <category>vscode</category>
      <category>testing</category>
    </item>
    <item>
      <title>Flutter: How to rotate an Icon?</title>
      <dc:creator>Melvin S</dc:creator>
      <pubDate>Wed, 30 Oct 2019 07:05:40 +0000</pubDate>
      <link>https://dev.to/mewben/flutter-how-to-rotate-an-icon-43ln</link>
      <guid>https://dev.to/mewben/flutter-how-to-rotate-an-icon-43ln</guid>
      <description>&lt;h2&gt;
  
  
  Transform widget to the rescue
&lt;/h2&gt;

&lt;p&gt;A Transform widget “transforms” (i.e. changes the shape, size, position and orientation) its child widget before painting it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Transform.rotate
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Transform.rotate&lt;/strong&gt; rotates a child by an angle in radians not degrees. So, to rotate by 90 degrees, you need to multiply 90 x π/180 to get the value in radians.&lt;/p&gt;

&lt;p&gt;Code:&lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;


&lt;p&gt;Don't forget to import 'dart:math' to use pi. :) More info on Transform widget here: &lt;/p&gt;
&lt;div class="ltag__link"&gt;
  &lt;a href="https://medium.com/flutter-community/a-deep-dive-into-transform-widgets-in-flutter-4dc32cd575a9" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__pic"&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--uGyXRgwJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://miro.medium.com/fit/c/96/96/1%2ACqHDNw_BzeiOttpQwPTnuA.jpeg" alt="Deven Joshi"&gt;
    &lt;/div&gt;
  &lt;/a&gt;
  &lt;a href="https://medium.com/flutter-community/a-deep-dive-into-transform-widgets-in-flutter-4dc32cd575a9" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__content"&gt;
      &lt;h2&gt;A Deep Dive Into Transform Widgets in Flutter | by Deven Joshi | Flutter Community | Medium&lt;/h2&gt;
      &lt;h3&gt;Deven Joshi ・ &lt;time&gt;Nov 19, 2018&lt;/time&gt; ・ 5 min read
      &lt;div class="ltag__link__servicename"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--KBvj_QRD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/medium_icon-90d5232a5da2369849f285fa499c8005e750a788fdbf34f5844d5f2201aae736.svg" alt="Medium Logo"&gt;
        Medium
      &lt;/div&gt;
    &lt;/h3&gt;
&lt;/div&gt;
  &lt;/a&gt;
&lt;/div&gt;


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