<?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: Oluwatobiloba </title>
    <description>The latest articles on DEV Community by Oluwatobiloba  (@oyelowotobiloba).</description>
    <link>https://dev.to/oyelowotobiloba</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%2F83789%2F737476f5-85cf-44d1-a97c-55b4505aa334.png</url>
      <title>DEV Community: Oluwatobiloba </title>
      <link>https://dev.to/oyelowotobiloba</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/oyelowotobiloba"/>
    <language>en</language>
    <item>
      <title>Creating a Custom appBar</title>
      <dc:creator>Oluwatobiloba </dc:creator>
      <pubDate>Fri, 17 Jul 2020 15:57:02 +0000</pubDate>
      <link>https://dev.to/oyelowotobiloba/creating-a-custom-appbar-mn9</link>
      <guid>https://dev.to/oyelowotobiloba/creating-a-custom-appbar-mn9</guid>
      <description>&lt;p&gt;😜 Yo!&lt;/p&gt;

&lt;p&gt;A couple of days, I was building a simple app that takes data from an API and displays them on the screen. A simple app though.&lt;/p&gt;

&lt;p&gt;Then I needed to add some height to my appBar. Well you might suggest&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight dart"&gt;&lt;code&gt;&lt;span class="o"&gt;...&lt;/span&gt;
&lt;span class="nl"&gt;toolbarHeight:&lt;/span&gt; &lt;span class="mf"&gt;100.0&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;
&lt;span class="nl"&gt;title:&lt;/span&gt; &lt;span class="n"&gt;Text&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="s"&gt;'Yo! Title here'&lt;/span&gt;&lt;span class="o"&gt;),&lt;/span&gt;
&lt;span class="o"&gt;...&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;but what if I want to customize my title, add some color, and use the properties across other screens well I don't want to go through the &lt;code&gt;ctrl c &amp;amp; ctrl v&lt;/code&gt; kinds of stuff.&lt;/p&gt;

&lt;p&gt;Here is what I did &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Created a widget directory inside my lib folder&lt;/li&gt;
&lt;li&gt;Created a new custom_appBar.dart file
&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight dart"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="s"&gt;'package:flutter/material.dart'&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;MyAppbar&lt;/span&gt; &lt;span class="kd"&gt;extends&lt;/span&gt; &lt;span class="n"&gt;StatelessWidget&lt;/span&gt; &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;PreferredSizeWidget&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
  &lt;span class="nd"&gt;@override&lt;/span&gt;
  &lt;span class="kd"&gt;final&lt;/span&gt; &lt;span class="kt"&gt;String&lt;/span&gt; &lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;final&lt;/span&gt; &lt;span class="n"&gt;Size&lt;/span&gt; &lt;span class="n"&gt;preferredSize&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;

  &lt;span class="n"&gt;MyAppbar&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="k"&gt;this&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;title&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;&lt;span class="n"&gt;Key&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="o"&gt;})&lt;/span&gt;
      &lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;preferredSize&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;Size&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;fromHeight&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;100.0&lt;/span&gt;&lt;span class="o"&gt;),&lt;/span&gt;
        &lt;span class="k"&gt;super&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nl"&gt;key:&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
  &lt;span class="nd"&gt;@override&lt;/span&gt;
  &lt;span class="n"&gt;Widget&lt;/span&gt; &lt;span class="n"&gt;build&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;BuildContext&lt;/span&gt; &lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;AppBar&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;
      &lt;span class="nl"&gt;title:&lt;/span&gt; &lt;span class="n"&gt;Text&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; 
        &lt;span class="nl"&gt;style:&lt;/span&gt; &lt;span class="n"&gt;TextStyle&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nl"&gt;color:&lt;/span&gt; &lt;span class="n"&gt;Colors&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;white&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;
      &lt;span class="o"&gt;),&lt;/span&gt;
      &lt;span class="nl"&gt;backgroundColor:&lt;/span&gt; &lt;span class="n"&gt;Colors&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;white38&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;
    &lt;span class="o"&gt;);&lt;/span&gt;
  &lt;span class="o"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;My new &lt;code&gt;MyAppbar&lt;/code&gt; class extend the &lt;code&gt;statelessWidget&lt;/code&gt;. you also noticed I have &lt;code&gt;with PreferredSizeWidget&lt;/code&gt; right? Yea! this is because the Scaffold takes in a PreferredSizeWidget and not the AppBar class directly.&lt;/p&gt;

&lt;p&gt;Then I set my constructor like so&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight dart"&gt;&lt;code&gt;&lt;span class="o"&gt;...&lt;/span&gt;
&lt;span class="n"&gt;MyAppbar&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="k"&gt;this&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;title&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;&lt;span class="n"&gt;Key&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="o"&gt;})&lt;/span&gt;
      &lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;preferredSize&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;Size&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;fromHeight&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;100.0&lt;/span&gt;&lt;span class="o"&gt;),&lt;/span&gt;
        &lt;span class="k"&gt;super&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nl"&gt;key:&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;span class="o"&gt;...&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Lastly, my build method returns the AppBar class and there I can now set my AppBar properties&lt;/p&gt;

&lt;p&gt;Now I can import and reuse my newly customized MyAppbar everywhere on my app&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight dart"&gt;&lt;code&gt;&lt;span class="o"&gt;...&lt;/span&gt;
&lt;span class="nl"&gt;appBar:&lt;/span&gt; &lt;span class="n"&gt;MyAppbar&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="s"&gt;'Title goes here!'&lt;/span&gt;&lt;span class="o"&gt;),&lt;/span&gt;
&lt;span class="o"&gt;...&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;I also recommend checking this medium article too 👍&lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag__link"&gt;
  &lt;a href="https://medium.com/flutter-community/flutter-increase-the-power-of-your-appbar-sliverappbar-c4f67c4e076f" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__pic"&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--_EnOw4y5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://miro.medium.com/fit/c/96/96/2%2AeHYvko50wOZ8gdDd-MmcMg.png" alt="Diego Velasquez"&gt;
    &lt;/div&gt;
  &lt;/a&gt;
  &lt;a href="https://medium.com/flutter-community/flutter-increase-the-power-of-your-appbar-sliverappbar-c4f67c4e076f" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__content"&gt;
      &lt;h2&gt;Flutter: Increase the power of your AppBar &amp;amp; SliverAppBar | by Diego Velasquez | Flutter Community | Medium&lt;/h2&gt;
      &lt;h3&gt;Diego Velasquez ・ &lt;time&gt;Jun 8, 2019&lt;/time&gt; ・ 
      &lt;div class="ltag__link__servicename"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--hnDHPsJs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/medium-f709f79cf29704f9f4c2a83f950b2964e95007a3e311b77f686915c71574fef2.svg" alt="Medium Logo"&gt;
        Medium
      &lt;/div&gt;
    &lt;/h3&gt;
&lt;/div&gt;
  &lt;/a&gt;
&lt;/div&gt;




&lt;div class="ltag__tag ltag__tag__id__5"&gt;
  
    .ltag__tag__id__5 .follow-action-button{
      background-color: #41C4FF !important;
      color: #03589C !important;
      border-color: #41C4FF !important;
    }
  
    &lt;div class="ltag__tag__content"&gt;
      &lt;h2&gt;#&lt;a href="https://dev.to/t/dart" class="ltag__tag__link"&gt;dart&lt;/a&gt; Follow
&lt;/h2&gt;
      &lt;div class="ltag__tag__summary"&gt;
        On the language, SDK and ecosystem.
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


</description>
      <category>flutter</category>
      <category>widget</category>
      <category>material</category>
      <category>beginners</category>
    </item>
    <item>
      <title>How would you tell friends that you're a backend developer? </title>
      <dc:creator>Oluwatobiloba </dc:creator>
      <pubDate>Thu, 02 Apr 2020 22:21:01 +0000</pubDate>
      <link>https://dev.to/oyelowotobiloba/how-would-you-tell-friends-that-you-re-a-backend-developer-51h3</link>
      <guid>https://dev.to/oyelowotobiloba/how-would-you-tell-friends-that-you-re-a-backend-developer-51h3</guid>
      <description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I realize that it is sometimes difficult to convince friends that you're a backend engineer. Like they always want to see the website you built, and the likes.&lt;/p&gt;

&lt;p&gt;So how do you tell them and what are the project you've worked on?&lt;/p&gt;

</description>
      <category>question</category>
    </item>
    <item>
      <title>Job Opportunity For Junior Software Developers 💻</title>
      <dc:creator>Oluwatobiloba </dc:creator>
      <pubDate>Wed, 31 Jul 2019 14:12:11 +0000</pubDate>
      <link>https://dev.to/oyelowotobiloba/job-opportunity-for-junior-software-developers-c42</link>
      <guid>https://dev.to/oyelowotobiloba/job-opportunity-for-junior-software-developers-c42</guid>
      <description>&lt;h1&gt;
  
  
  Do you know of any internship program in any tech industries?
&lt;/h1&gt;

&lt;h4&gt;
  
  
  If &lt;em&gt;YES&lt;/em&gt;, let's share so that intermediate developers can benefit from.
&lt;/h4&gt;

</description>
      <category>jobs</category>
      <category>junior</category>
      <category>developers</category>
      <category>remote</category>
    </item>
    <item>
      <title>How to be more productive when working on side project 💥💥.</title>
      <dc:creator>Oluwatobiloba </dc:creator>
      <pubDate>Sat, 06 Jul 2019 16:28:47 +0000</pubDate>
      <link>https://dev.to/oyelowotobiloba/how-to-be-more-productive-when-working-on-side-project-44ib</link>
      <guid>https://dev.to/oyelowotobiloba/how-to-be-more-productive-when-working-on-side-project-44ib</guid>
      <description>&lt;h1&gt;
  
  
  I would like to know how you guys handle distraction when working on side project 🧐
&lt;/h1&gt;

&lt;h3&gt;
  
  
  I really need to know. "cause something isn't working right here 🤷.
&lt;/h3&gt;

</description>
      <category>software</category>
      <category>developer</category>
      <category>productive</category>
    </item>
    <item>
      <title>🔥 🔥 My Favorite Packages on Atom editor for PHP Development</title>
      <dc:creator>Oluwatobiloba </dc:creator>
      <pubDate>Sat, 08 Sep 2018 22:30:54 +0000</pubDate>
      <link>https://dev.to/oyelowotobiloba/--my-favorite-packages-on-atom-editor-for-php-development-3i77</link>
      <guid>https://dev.to/oyelowotobiloba/--my-favorite-packages-on-atom-editor-for-php-development-3i77</guid>
      <description>&lt;p&gt;Hello guys, this is my first post on &lt;strong&gt;dev.to&lt;/strong&gt; and today, I'll be sharing with you the list of packages, how to install them on your atom text editor giving it a new look and making your coding moment more fascinating and enjoyable. &lt;/p&gt;

&lt;h3&gt;
  
  
  LET'S GET STARTED 🔥🔥🔥
&lt;/h3&gt;

&lt;h1&gt;
  
  
  1. Atom-beautify 😍
&lt;/h1&gt;

&lt;p&gt;Guess what it's one of its kind. Wait are you worried about indentations? 😥 this will save you and make your codes more clean and organized.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;to install,&lt;/em&gt; press &lt;strong&gt;ctrl + alt + T&lt;/strong&gt; this will open your terminal on ubuntu and probably on Mac Os too, then type or copy the following command &lt;strong&gt;apm install atom-beautify&lt;/strong&gt; to the terminal&lt;/p&gt;

&lt;h1&gt;
  
  
  2. linter 👌
&lt;/h1&gt;

&lt;p&gt;This provide you with option to view errors in your codes without stress. To install, copy or type &lt;strong&gt;apm install linter&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Note&lt;/em&gt; You might want to install specific linter for different work and languages you're using&lt;/p&gt;

&lt;h1&gt;
  
  
  3. Autocomplete-paths
&lt;/h1&gt;

&lt;p&gt;Just as it sounds, it'll autocomplete the missing path. I love this package with my 💕 heart and I can't live without it. funny! 😁&lt;/p&gt;

&lt;p&gt;By now, you should know how to install this package &lt;strong&gt;apm install autocomplete-paths&lt;/strong&gt; so simple right??😘&lt;/p&gt;

&lt;p&gt;Let's test this out by typing fun (function) and we see this&lt;/p&gt;

&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%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F94k17rmn1nr20z2oqig8.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%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F94k17rmn1nr20z2oqig8.png" alt="Alt text of image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hold on, now press enter. You should see the autocomplete working now.&lt;/p&gt;

&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%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F9omffxi2mwod2x1drm1v.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%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F9omffxi2mwod2x1drm1v.png" alt="Alt text of image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  4. File-icons
&lt;/h1&gt;

&lt;p&gt;File icons is a lovely package every atom user must have (sorry not a must but choice)&lt;/p&gt;

&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%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F35radqirm4d8gryq1rtx.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%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F35radqirm4d8gryq1rtx.png" alt="Alt text of image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  5. php-cs-fixer
&lt;/h1&gt;

&lt;p&gt;No 1 package. I can't explain why I kept it as the &lt;em&gt;5th&lt;/em&gt;. This is PHP Coding Standards Fixer.&lt;/p&gt;

&lt;p&gt;The installation is quiet different from the rest of the package. We need to meet the requirement by making the package available on our path. Sorry for the long story&lt;/p&gt;

&lt;p&gt;The following steps will solve it.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Navigate to your terminal&lt;/li&gt;
&lt;li&gt;Check if composer is installed by executing &lt;strong&gt;composer -v&lt;/strong&gt;. This will check the version of composer. However, you can follow this link to install &lt;a href="https://getcomposer.org/download/" rel="noopener noreferrer"&gt;composer&lt;/a&gt;
&lt;/li&gt;
&lt;/ol&gt;

&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%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fippadl0jrvjxhw8qdpya.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%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fippadl0jrvjxhw8qdpya.png" alt="Alt text of image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You should see the above output if composer is installed&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Next, copy and paste &lt;strong&gt;$ composer global require friendsofphp/php-cs-fixer&lt;/strong&gt; to your terminal&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Lastly, copy &lt;strong&gt;$ export PATH="$PATH:$HOME/.composer/vendor/bin"&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

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

&lt;h5&gt;
  
  
  Figlet
&lt;/h5&gt;

&lt;p&gt;With figlet, you can convert a selection into ascii-art which  is sometimes useful when documentin g.&lt;/p&gt;

&lt;h5&gt;
  
  
  language-blade
&lt;/h5&gt;

&lt;p&gt;Must have for every Laravel developer&lt;/p&gt;

&lt;h5&gt;
  
  
  highlight-selected
&lt;/h5&gt;

&lt;p&gt;THE END&lt;/p&gt;

&lt;p&gt;Something missing? leave a comment, I can't wait to see other amazing packages&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>texteditor</category>
      <category>atom</category>
      <category>ubuntu</category>
    </item>
  </channel>
</rss>
