<?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 Rushabh Shah on Medium]]></title>
        <description><![CDATA[Stories by Rushabh Shah on Medium]]></description>
        <link>https://medium.com/@rushabhshah065?source=rss-a8527c80c5af------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*W564lcftYBGlZ6vXrHhJiA.jpeg</url>
            <title>Stories by Rushabh Shah on Medium</title>
            <link>https://medium.com/@rushabhshah065?source=rss-a8527c80c5af------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 19:23:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rushabhshah065/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[Collapsing Toolbar (SilverAppBar)— Flutter]]></title>
            <link>https://rushabhshah065.medium.com/collapsing-toolbar-silverappbar-flutter-9f9c5cbff25b?source=rss-a8527c80c5af------2</link>
            <guid isPermaLink="false">https://medium.com/p/9f9c5cbff25b</guid>
            <category><![CDATA[appbar]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[collapsing-toolbar]]></category>
            <category><![CDATA[sliverappbar]]></category>
            <dc:creator><![CDATA[Rushabh Shah]]></dc:creator>
            <pubDate>Tue, 27 Jul 2021 18:26:02 GMT</pubDate>
            <atom:updated>2021-07-27T18:26:02.320Z</atom:updated>
            <content:encoded><![CDATA[<p>The Collapsing Toolbar is a <strong>widely used</strong> and <strong>beautiful widget UI component</strong> for mobile apps. Collapsing toolbar is used to show page detail information with the image.</p><p>Flutter provides <a href="https://api.flutter.dev/flutter/material/SliverAppBar-class.html"><strong>SliverAppBar</strong></a><strong>, </strong><a href="https://api.flutter.dev/flutter/material/FlexibleSpaceBar-class.html"><strong>FlexibleSpaceBar</strong></a><strong>, </strong>and<strong> </strong><a href="https://api.flutter.dev/flutter/widgets/SliverOverlapInjector-class.html"><strong>SliverOverlapInjector</strong></a><strong> </strong>class<strong> </strong>for designing collapsing toolbar for Android, iOS, and web platforms.</p><blockquote><strong><em>Create Flutter Project:</em></strong></blockquote><p>Open terminal and type the below command:<br>$ flutter create my_app<br> For deep tutorial visit: <a href="https://flutter.dev/docs/get-started/codelab">https://flutter.dev/docs/get-started/codelab</a></p><blockquote>For full code please visit:</blockquote><p><a href="https://github.com/rushabhshah065/FlutterCollapsingToolbar">GitHub - rushabhshah065/FlutterCollapsingToolbar</a></p><blockquote><strong>Creating a stateful widget.</strong></blockquote><p>We will create a stateful widget in our <strong><em>main.dart</em></strong> file. Replace your <strong><em>main.dart</em></strong> file code with the below code.</p><pre>void main() {<br>  runApp(MyApp());<br>}<br><br>class MyApp extends StatelessWidget {<br>  @override<br>  Widget build(BuildContext context) {<br>    return MaterialApp(<br>      title: &#39;Flutter Collapsing Toolbar&#39;,<br>      debugShowCheckedModeBanner: false,<br>      theme: ThemeData(<br>        primarySwatch: Colors.<em>blue</em>,<br>      ),<br>      home: MyHomePage(),<br>    );<br>  }<br>}</pre><pre>class MyHomePage extends StatefulWidget {<br>  MyHomePage({Key? key}) : super(key: key);<br><br>  @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 Container();<br>  }<br>}</pre><blockquote><strong>Adding asset and custom fonts:</strong></blockquote><p>To use the image for the FlexibleSpaceBar background, add a sample image in the <strong><em>images</em></strong> folder. And then add the image path under the assets tag in <strong><em>pubsec.yaml</em></strong> file. <br>(Note: Replace your image name with flutter_logo.jpeg)</p><pre>assets:<br>  - images/flutter_logo.jpeg</pre><p>To use custom google fonts add Google Fonts dependency in <strong><em>pubsec.yaml</em></strong> file.</p><pre>google_fonts: ^2.1.0</pre><blockquote><strong>Adding widgets in build:</strong></blockquote><p>Let us, deep-dive, into the widget hierarchy.</p><p><a href="https://api.flutter.dev/flutter/widgets/SafeArea-class.html">SafeArea</a> : A widget that inserts its child with sufficient padding to avoid intrusions by the operating system.</p><p><a href="https://api.flutter.dev/flutter/widgets/NestedScrollView-class.html">NestedScrollView</a>: A scrolling view inside of which can be nested other scrolling views, with their scroll positions being intrinsically linked.</p><p><a href="https://api.flutter.dev/flutter/widgets/SliverOverlapAbsorber-class.html">SliverOverlapAbsorber</a>: A sliver that wraps another, forcing its layout extent to be treated as overlap.</p><p><a href="https://api.flutter.dev/flutter/material/SliverAppBar-class.html">SilverAppBar</a>: A material design app bar that integrates with a <a href="https://api.flutter.dev/flutter/widgets/CustomScrollView-class.html">CustomScrollView</a>.</p><p><a href="https://api.flutter.dev/flutter/material/FlexibleSpaceBar-class.html">FlexibleSpaceBar</a>: The part of a material design <a href="https://api.flutter.dev/flutter/material/AppBar-class.html">AppBar</a> that expands, collapses, and stretches.</p><p><a href="https://api.flutter.dev/flutter/widgets/SliverOverlapInjector-class.html">SliverOverlapInjector</a>: A sliver that has a sliver geometry based on the values stored in a <a href="https://api.flutter.dev/flutter/widgets/SliverOverlapAbsorberHandle-class.html">SliverOverlapAbsorberHandle</a>.</p><p>Here I have used the <em>AnimatedOpacity</em> for hiding the app bar text when the app bar is in an expanded state. It is optional.</p><p>Also, I have added only a single child for SliverList as I do not want the list tile here. We can use SliverChildBuilderDelegate for inflating the list here.</p><p>Replace build content of the _MyHomePageState widget with below.</p><pre>@override<br>Widget build(BuildContext context) {<br>  return Scaffold(<br>    body: SafeArea(<br>        child: NestedScrollView(headerSliverBuilder:<br>            (BuildContext context, bool innerBoxIsScrolled) {<br>      return &lt;Widget&gt;[<br>        SliverOverlapAbsorber(<br>          handle: NestedScrollView.<em>sliverOverlapAbsorberHandleFor</em>(context),<br>          sliver: SliverAppBar(<br>            expandedHeight: 200.0,<br>            floating: false,<br>            pinned: true,<br>            flexibleSpace: LayoutBuilder(<br>                builder: (BuildContext context, BoxConstraints constraints) {<br>              var top = constraints.biggest.height;<br>              return FlexibleSpaceBar(<br>                  title: AnimatedOpacity(<br>                    duration: Duration(milliseconds: 10),<br>                    opacity: top == 56.0 ? 1.0 : 0.0,<br>                    child: Text(&quot;Collapsing Toolbar&quot;,<br>                        style: TextStyle(<br>                            color: Colors.<em>black</em>,<br>                            fontSize: 18.0,<br>                            fontWeight: FontWeight.<em>bold</em>)),<br>                  ),<br>                  background: Image.asset(<br>                    &quot;images/flutter_logo.jpeg&quot;,<br>                    fit: BoxFit.cover,<br>                  ));<br>            }),<br>          ),<br>        )<br>      ];<br>    }, body: Builder(<br>      builder: (BuildContext context) {<br>        return CustomScrollView(<br>          key: PageStorageKey&lt;String&gt;(&quot;&quot;),<br>          slivers: &lt;Widget&gt;[<br>            SliverOverlapInjector(<br>              // This is the flip side of the SliverOverlapAbsorber<br>              // above.<br>              handle:<br>                  NestedScrollView.<em>sliverOverlapAbsorberHandleFor</em>(context),<br>            ),<br>            SliverPadding(<br>              padding: const EdgeInsets.all(8.0),<br>              sliver: SliverList(<br>                delegate: SliverChildBuilderDelegate(<br>                  (BuildContext context, int index) {<br>                    return _getBody();<br>                  },<br>                  childCount: 1,<br>                ),<br>              ),<br>            ),<br>          ],<br>        );<br>      },<br>    ))),<br>  );<br>}</pre><p>Add custom body in the _getBody() method or use _getBody() function from my <a href="https://github.com/rushabhshah065/FlutterCollapsingToolbar">repositoy</a>.</p><p>Run the code and….</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F26gsj5Oxzps32SNzO%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F26gsj5Oxzps32SNzO%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2F26gsj5Oxzps32SNzO%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/25cf2cf45252867f09c9ea2bdacd4732/href">https://medium.com/media/25cf2cf45252867f09c9ea2bdacd4732/href</a></iframe><h3><strong>Output:</strong></h3><blockquote><strong>Mobile App</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*Cyg8LliQXCzAcsi6ho6ZOg.gif" /><figcaption>Mobile App Output</figcaption></figure><p>❣️ <strong>A supporter is worth 1000 followers!! </strong>❣️</p><figure><a href="https://www.buymeacoffee.com/rushabhshah"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CWhTqddEauRJMxcWvbUyjQ.jpeg" /></a></figure><p>❤❤ Hey 👋. Enjoying reading my post, please show some LOVE! ❤❤</p><figure><a href="https://www.buymeacoffee.com/rushabhshah"><img alt="" src="https://cdn-images-1.medium.com/max/170/1*9vg3-OY14aZN1UpKwIxxZg.png" /></a></figure><blockquote><strong>Bonus: <br>This code also works for web. Select chrome(web) as output device and run your project.</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*2s7I0R9eOhQIU77etlEsdA.gif" /><figcaption>Web Output</figcaption></figure><p>If you like my post, SMASH the CLAP 👏 Button and DISAPPEAR it from Medium.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f9c5cbff25b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IELTS General Training — Task-1 Letter Writing (Sample Format)]]></title>
            <link>https://rushabhshah065.medium.com/ielts-general-training-task-1-letter-writing-sample-format-dbb776a6b34d?source=rss-a8527c80c5af------2</link>
            <guid isPermaLink="false">https://medium.com/p/dbb776a6b34d</guid>
            <category><![CDATA[ielts]]></category>
            <category><![CDATA[ielts-general-training]]></category>
            <category><![CDATA[letters]]></category>
            <category><![CDATA[english]]></category>
            <dc:creator><![CDATA[Rushabh Shah]]></dc:creator>
            <pubDate>Fri, 23 Apr 2021 13:01:56 GMT</pubDate>
            <atom:updated>2021-07-15T15:16:51.881Z</atom:updated>
            <content:encoded><![CDATA[<h3>IELTS General Training — Task-1 Letter Writing (Sample Format)</h3><p>Here, I have collected different types of letter writing samples and it’s format.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7OXnCpznckbpF-KxXo2EMw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PMz4YLfCA89k1-Xr" /></figure><p>An important point to remember when writing formal letters is that you shouldn’t use contractions. This means you should write I am and not I’m. The contracted form is fine for informal letters and speaking.</p><h3>Complaining: (Formal)</h3><p>Dear Sir,</p><p>I am writing this letter to express my concern about.. OR I would like to draw your attention for..</p><p>&gt; Body Para 1, 2, 3..</p><p>Hoping for careful consideration of my concern/ this suggestion.</p><p>Yours faithfully,<br>Rushabh Shah</p><h3>Saying Thank You: (Formal/Informal)</h3><h3>Formal:</h3><p>Dear Sir,</p><p>I would like to take this opportunity to express my gratitude for..</p><p>&gt; Body Para 1, 2, 3..</p><p>Your help is greatly appreciated. OR With thanks and appreciation.</p><p>Yours faithfully,<br>Rushabh Shah</p><h3>Informal:</h3><p>Dear Ramesh,</p><p>I’m grateful to you for.. OR I’d like to thank you for..</p><p>&gt; Body Para 1, 2, 3..</p><p>Thanks for all you do OR Thanks for everything OR With gratitude</p><p>Yours lovingly,<br>Rushabh Shah</p><h3>Job Letter: (Formal)</h3><p>Dear Sir,</p><p>I am writing this in response to your advertisement for… OR I am writing to City Evening College in reference to an advertisement I saw in The Vancouver Sun on May 14th for language teachers at your college.</p><p>&gt; Body Para 1, 2, 3..</p><p>I look forward to hearing from you.</p><p>Yours faithfully,<br>Rushabh Shah</p><h3>Responding to an Invitation/Event/Complaint (Formal/Informal)</h3><h3>Formal:</h3><p>Dear Sir,</p><p>I was very delighted to receive… OR Following your request for … I am happy to assist you in this matter.</p><p>&gt; Body Para 1, 2, 3..</p><p>Grateful for your consideration.(Invitation/ Event) OR Please let me know if I can be of any more assistance. (Complaint)</p><p>Yours truly,<br>Rushabh Shah</p><h3>Informal:</h3><p>Dear Ramesh,</p><p>Thank you so much for inviting me to this… I’d love to… OR I’d be happy to help you with..</p><p>&gt; Body Para 1, 2, 3..</p><p>So delighted to be a part of that event..(Invitation/ Event) OR Please let me know if I can be of any more assistance. (Complaint)</p><p>Yours truly,<br>Rushabh Shah</p><h3>Invitation (Formal/Informal)</h3><h3>Formal:</h3><p>Dear Sir,</p><p>I would very much like to invite you..</p><p>&gt; Body Para 1, 2, 3..</p><p>Hoping to see you soon.</p><p>Yours sincerely,<br>Rushabh Shah</p><h3>Informal:</h3><p>Dear Ramesh,</p><p>Hope this letter finds you in radiant health and the best of spirit. I am formally inviting you to the wedding…</p><p>&gt; Body Para 1, 2, 3..</p><p>Hoping to see you there.</p><p>Yours lovingly,<br>Rushabh Shah</p><h3>Apologies (Formal/Informal)</h3><h3>Formal</h3><p>Dear Sir,</p><p>May I take this opportunity to apologise for… Unfortunately, a delay kept me from attending.</p><p>&gt; Body Para 1, 2, 3..</p><p>Please accept my sincere apology. OR Again, I am sincerely sorry that I was unable to attend and hope you understand the circumstances that led to my absence.</p><p>Yours faithful,<br>Rushabh Shah</p><h3>Informal</h3><p>Dear Ramesh,</p><p>I regret that I couldn’t make it. (in future) OR I apologise for missing.. (past)</p><p>&gt; Body Para 1, 2, 3..</p><p>Hoping to hear from you soon. OR Please accept my apologies.</p><p>Yours lovingly,<br>Rushabh Shah</p><h3>Asking someone to do something</h3><h3>Formal:</h3><p>Dear Sir,</p><p>I am extremely grateful if you could..</p><p>&gt; Body Para 1, 2, 3..</p><p>Hoping to hear from you soon.</p><p>Yours sincerely,<br>Rushabh Shah</p><h3>Informal:</h3><p>Dear Sir,</p><p>I’d be grateful if you could..</p><p>&gt; Body Para 1, 2, 3..</p><p>Hoping to hear from you soon.</p><p>Yours sincerely,<br>Rushabh Shah</p><figure><a href="https://www.buymeacoffee.com/rushabhshah"><img alt="" src="https://cdn-images-1.medium.com/max/170/1*9vg3-OY14aZN1UpKwIxxZg.png" /></a><figcaption>❤❤ Hey!! If you like my post then please show some LOVE! ❤❤</figcaption></figure><p>If you like <strong>SMASH</strong> the <strong>CLAP</strong> 👏 Button and <strong>DISAPPEAR</strong> it from Medium.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dbb776a6b34d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GitLab pipeline with static code analysis — detekt (kotlin)]]></title>
            <link>https://rushabhshah065.medium.com/gitlab-pipeline-with-static-code-analysis-detekt-kotlin-3f0e3987942?source=rss-a8527c80c5af------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f0e3987942</guid>
            <category><![CDATA[detekt]]></category>
            <category><![CDATA[static-code-analysis]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[gitlab-ci]]></category>
            <category><![CDATA[pipeline]]></category>
            <dc:creator><![CDATA[Rushabh Shah]]></dc:creator>
            <pubDate>Mon, 22 Mar 2021 18:02:14 GMT</pubDate>
            <atom:updated>2021-07-16T08:02:00.600Z</atom:updated>
            <content:encoded><![CDATA[<h3>GitLab pipeline with static code analysis — detekt (kotlin)</h3><p>Have you ever tried static code analysis for your project? Not yet!! you should have a hands-on it!</p><p>Many of the developers might try it for linting purposes. But what if we can make it automated!! Sounds good!!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F3oz8xQQP4ahKiyuxHy%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F3oz8xQQP4ahKiyuxHy%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2F3oz8xQQP4ahKiyuxHy%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="319" frameborder="0" scrolling="no"><a href="https://medium.com/media/9967ac4de5583f64367922bafe667108/href">https://medium.com/media/9967ac4de5583f64367922bafe667108/href</a></iframe><blockquote>I am going to explain detekt tool for kotlin static code analysis with gitlab automated pipelines.</blockquote><p>What is <a href="https://detekt.github.io/detekt/">detekt</a> ??</p><p>Kotlin specific linting tool that can enforce codebase documentation, give hints about code blocks, and enforce formatting standards!</p><h4>Step : 1 Add detekt in your project:</h4><p>Modify your app-level build.gradle file as below. Add detekt plugin.</p><pre>plugins <strong>{<br>    </strong>id &#39;com.android.application&#39;<br>    id &#39;kotlin-android&#39;<br>    id &quot;io.gitlab.arturbosch.detekt&quot; version &quot;1.16.0&quot;<br><strong>}</strong></pre><h4>Step: 2 Add below in app-level build.gradle file dependancies. (formatting checks)</h4><pre>dependencies <strong>{<br>.<br>.</strong></pre><pre>detekt(&quot;io.gitlab.arturbosch.detekt:detekt-formatting:1.16.0&quot;)<br>detekt(&quot;io.gitlab.arturbosch.detekt:detekt-cli:1.16.0&quot;)<br>}</pre><p>Other ways for adding can be found <a href="https://detekt.github.io/detekt/gradle.html">here</a>.</p><p>Sync file with Gradle. Then run,</p><pre>$ ./gradlew task</pre><p>You can see a list of gradle tasks, including the brand new detekt ones running in the terminal. Run below command to see the full report!!</p><pre>$ ./gradlew detekt</pre><h4>Detekt Configuration File</h4><p><em>Detekt configuration file is highly configurable. Detekt</em> uses a yaml style configuration file for various things. Sample <a href="https://github.com/detekt/detekt/blob/main/detekt-core/src/main/resources/default-detekt-config.yml">file</a>.</p><p>Run the below command to generate a config file.</p><pre>$ ./gradlew detektGenerateConfig</pre><p>Open the newly generated file in &lt;project-root&gt;/config/detekt/detekt.yml<em> </em>to start modifying it.</p><p>More related to the config file can be found <a href="https://detekt.github.io/detekt/configurations.html">here</a>.</p><p>Android Studio Gradle Plugin for detekt : <a href="https://plugins.jetbrains.com/plugin/10761-detekt">https://plugins.jetbrains.com/plugin/10761-detekt</a></p><h3>GitLab Integration:</h3><p>We can enforce static code checks defined in detekt.yml as precheck before merge request.</p><p>First, create <strong><em>.gitlab-ci.yml</em></strong> file at the root of your project folder. Add below content in it.</p><pre>before_script:<br>  - export GRADLE_USER_HOME=$(pwd)/.gradle<br>  - chmod +x ./gradlew<br><br>cache:<br>  key: ${CI_PROJECT_ID}<br>  paths:<br>    - .gradle/<br>stages:<br>  - build<br><br>assembleDebug:<br>  image: jangrewe/gitlab-ci-android<br>  stage: build<br>  only:<br>    - merge_requests<br>  script:<br>    - ./gradlew detekt</pre><p>Commit and push this file to your repository. And voila!!</p><p>Now, whenever any merge request created, first a pipeline will run and code will be analyzed.</p><p>❣️ <strong>A supporter is worth 1000 followers!! </strong>❣️</p><figure><a href="https://www.buymeacoffee.com/rushabhshah"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CWhTqddEauRJMxcWvbUyjQ.jpeg" /></a></figure><p>❤❤ Hey 👋. Enjoying reading my post, please show some LOVE! ❤❤</p><figure><a href="https://www.buymeacoffee.com/rushabhshah"><img alt="" src="https://cdn-images-1.medium.com/max/170/1*9vg3-OY14aZN1UpKwIxxZg.png" /></a></figure><blockquote>Bonus: <br>For enforcing that, Only allow merge requests to be merged if the pipeline succeeds. In your GitLab repository, (maintainer access needed)</blockquote><ol><li>Navigate to your project’s <strong>Settings &gt; General</strong> page.</li><li>Expand the <strong>Merge requests</strong> section.</li><li>In the <strong>Merge checks</strong> subsection, select the <strong>Pipelines must succeed</strong> checkbox.</li><li>Press <strong>Save</strong> for the changes to take effect.</li></ol><p>If you like <strong>SMASH</strong> the <strong>CLAP</strong> 👏 Button and <strong>DISAPPEAR</strong> it from Medium.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f0e3987942" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GitLab (CI+ CD) Create Android Signed build + Upload build on firebase distribution.]]></title>
            <link>https://rushabhshah065.medium.com/gitlab-ci-cd-create-android-signed-build-upload-build-on-firebase-distribution-dc7824b6ec9a?source=rss-a8527c80c5af------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc7824b6ec9a</guid>
            <category><![CDATA[release-build]]></category>
            <category><![CDATA[gitlab]]></category>
            <category><![CDATA[gitlab-ci]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[firebase-app-distribution]]></category>
            <dc:creator><![CDATA[Rushabh Shah]]></dc:creator>
            <pubDate>Wed, 30 Sep 2020 17:51:39 GMT</pubDate>
            <atom:updated>2021-07-19T10:13:12.492Z</atom:updated>
            <content:encoded><![CDATA[<p>When we heard CI-CD, there is some reluctance in ourselves until we fully know about it!</p><p>CI- Continuous Integration, CD- Continuous Delivery.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/340/1*ghTN3sGZ7xrN33fnL6o79A.png" /></figure><h3>Step1- .gitlab-ci.yml</h3><p>Open GitLab and create a file in the root folder. We will write our CI-CD code in this file.</p><p><strong>FYI:</strong> GitLab CI/CD pipelines are configured using a YAML file called .gitlab-ci.yml within each project.</p><p>The .gitlab-ci.yml the file defines the structure and order of the pipelines and determines:</p><ul><li>What to execute using GitLab Runner.</li><li>What decisions to make when specific conditions are encountered. For example, when a process succeeds or fails.</li></ul><h3>Step-2 Caching</h3><p>Caching the Gradle folder between builds may reduce building time. When we add cache to our builds, each cached job will download and extract the cache at the beginning and upload the cache at the end. Add this in .gitlab-ci.ymlat the top of the file.</p><pre>before_script:<br>  - export GRADLE_USER_HOME=$(pwd)/.gradle<br>  - chmod +x ./gradlew<br><br>cache:<br>  key: ${CI_PROJECT_ID}<br>  paths:<br>    - .gradle/</pre><h3>Step-3 Stages</h3><p>Defines a job stage for our GitLab CI pipeline. It will define the order of the job. Jobs in the same stage will run in parallel. Add this after caching in the <em>.gitlab-ci.yml</em> file:</p><pre>stages:<br>  - build<br>  - deploy</pre><h3>Step-4 Stage build</h3><pre>assembleDebug:<br>  image: jangrewe/gitlab-ci-android<br>  stage: build<br>  only:<br>    - master<br>  script:<br>    - echo $KEYSTORE_FILE | base64 -d &gt; my.keystore<br>    - ./gradlew assembleRelease<br>     -Pandroid.injected.signing.store.file=$(pwd)/my.keystore<br>     -Pandroid.injected.signing.store.password=$KEYSTORE_PASSWORD<br>     -Pandroid.injected.signing.key.alias=$KEY_ALIAS<br>     -Pandroid.injected.signing.key.password=$KEY_PASSWORD<br>    - cp app/build/outputs/apk/appname.apk appname.apk <br><br>  artifacts:<br>    expire_in: 7 days<br>    paths:<br>      - appname.apk</pre><p>Let me explain!</p><pre>assembleDebug:</pre><p>This represents Job that will be done in the build stage. We can provide any name which we want to provide here.</p><pre>image: jangrewe/gitlab-ci-android</pre><p>CI Job will run inside a Docker Image. Downloading the image, with everything installed, is a bit faster than running the SDK install process every time.</p><pre>only:<br>    - master</pre><p>It specifies that the stage will be applied only when there is a push on a specific branch. Here, I applied to the master branch.</p><pre>script:<br>    - echo $KEYSTORE_FILE | base64 -d &gt; my.keystore<br>    - ./gradlew assembleRelease<br>     -Pandroid.injected.signing.store.file=$(pwd)/my.keystore<br>     -Pandroid.injected.signing.store.password=$KEYSTORE_PASSWORD<br>     -Pandroid.injected.signing.key.alias=$KEY_ALIAS<br>     -Pandroid.injected.signing.key.password=$KEY_PASSWORD<br>    - cp app/build/outputs/apk/appname.apk appname.apk</pre><p>This is the stage where we build and sign our application. We want a release build with an app that is signed with a release key store. We will use GitLab CI/CD variables here. We will store our secret keys and passwords inside the variables and they will be accessible only for our job runners. It’s easy to store the Keystore passwords and alias, but what are we going to do with the Keystore file? We will store it as a base64 string.</p><pre>base64 -w 0 ~/.android/debug.keystore</pre><p>Now that we have our base64 string, let’s put it inside CI/CD variables. In GitLab project, go to Settings -&gt; CI / CD -&gt; Environment variables (expand). Add your keys and passwords. Make sure that your variable names match the same in the script.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C7pXeSKx9rcQYl5GrXUTCQ.png" /><figcaption>Add Variable</figcaption></figure><ul><li>KEY_ALIAS</li><li>KEY_PASSWORD</li><li>KEYSTORE_PASSWORD</li></ul><p>Protected variables will be used only in protected branches.</p><p>Now that we have the keys, our release job will decode the base64 back to the Keystore file and will run gradlew assembleRelease with the keys.</p><pre>cp app/build/outputs/apk/appname.apk appname.apk</pre><p>^^ This is your generated release APK path. Change it as per your build or product flavor requirements.</p><pre>artifacts:<br>    expire_in: 7 days<br>    paths:<br>      - appname.apk</pre><p>The artifacts are passed to the next job (upload) and are also available for download from GitLab UI.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F17373303&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fand-voila-daniel-shiffman-there-it-is-thats-it-tadaa-gif-17373303&amp;image=https%3A%2F%2Fmedia.tenor.com%2FNBE0IdGZYM0AAAAC%2Fand-voila-daniel-shiffman.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/cd1d46d2b65191ba126de96181d92059/href">https://medium.com/media/cd1d46d2b65191ba126de96181d92059/href</a></iframe><p><em>Here your Build Stage is completed.VOILA!! </em>Now let us move to the deploy stage.</p><p><strong>A supporter is worth 1000 followers!!</strong></p><figure><a href="https://www.buymeacoffee.com/rushabhshah"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CWhTqddEauRJMxcWvbUyjQ.jpeg" /></a></figure><p>❤❤ Hey!! Enjoying reading my post, please show some LOVE! ❤❤</p><figure><a href="https://www.buymeacoffee.com/rushabhshah"><img alt="" src="https://cdn-images-1.medium.com/max/170/1*9vg3-OY14aZN1UpKwIxxZg.png" /></a></figure><h3>Firebase Distribution Deployment:</h3><p>Here we will use,<br>image: node: latest</p><pre>deploy_production:<br>  image: node:latest<br>  stage: deploy<br>  only:<br>    - master<br>  script:<br>    - npm install -g firebase-tools<br>    - firebase appdistribution:distribute app.apk --app your_firebase_app_id --release-notes-file release-notes.txt --groups &quot;test-group&quot; --token &quot;$FIREBASE_CI_TOKEN&quot;</pre><p>We need the firebase app id and firebase CI token here. Firebase app id can be found in the project setting of your firebase console. Firebase CI Token can be generated using the below guide.<br><a href="https://firebase.google.com/docs/cli#cli-ci-systems">https://firebase.google.com/docs/cli#cli-ci-systems</a></p><p>Add this token as a variable in GitLab as FIREBASE_CI_TOKEN.</p><p>Once code is merged in the master branch, the release build will generate and will upload directly on firebase app distribution!!</p><p>Yeah, it looks like magic!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FiBjylURwS9N9FCl8Dl%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FiBjylURwS9N9FCl8Dl%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FiBjylURwS9N9FCl8Dl%2Fgiphy.gif&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/c15611a5c7d0a4aa53d792548f3f20f5/href">https://medium.com/media/c15611a5c7d0a4aa53d792548f3f20f5/href</a></iframe><h3>.gitlab-ci.yml (complete file)</h3><pre>before_script:<br>  - export GRADLE_USER_HOME=$(pwd)/.gradle<br>  - chmod +x ./gradlew<br><br>cache:<br>  key: ${CI_PROJECT_ID}<br>  paths:<br>    - .gradle/<br>stages:<br>  - build<br>  - deploy<br><br>assembleDebug:<br>  image: jangrewe/gitlab-ci-android<br>  stage: build<br>  only:<br>    - master<br>  script:<br>    - echo $KEYSTORE_FILE | base64 -d &gt; my.keystore<br>    - ./gradlew assembleRelease<br>     -Pandroid.injected.signing.store.file=$(pwd)/my.keystore<br>     -Pandroid.injected.signing.store.password=$KEYSTORE_PASSWORD<br>     -Pandroid.injected.signing.key.alias=$KEY_ALIAS<br>     -Pandroid.injected.signing.key.password=$KEY_PASSWORD<br>    - cp app/build/outputs/apk/appname.apk appname.apk <br><br>  artifacts:<br>    expire_in: 7 days<br>    paths:<br>      - appname.apk<br><br>deploy_production:<br>  image: node:latest<br>  stage: deploy<br>  only:<br>    - master<br>  script:<br>    - npm install -g firebase-tools<br>    - firebase appdistribution:distribute app.apk --app your_firebase_app_id --release-notes-file release-notes.txt --groups &quot;test-group&quot; --token &quot;$FIREBASE_CI_TOKEN&quot;</pre><p>Useful Links:</p><p>GitLab CI-CD Configuration: <a href="https://docs.gitlab.com/ee/ci/yaml/">https://docs.gitlab.com/ee/ci/yaml/</a><br>Firebase App Distribution CLI: <a href="https://firebase.google.com/docs/app-distribution/android/distribute-cli">https://firebase.google.com/docs/app-distribution/android/distribute-cli</a><br>Gradle build flavors: <a href="https://stackoverflow.com/questions/21307444/gradle-build-only-a-flavour">https://stackoverflow.com/questions/21307444/gradle-build-only-a-flavour</a></p><p>If you like <strong>SMASH</strong> the <strong>CLAP</strong> 👏 Button and <strong>DISAPPEAR</strong> it from Medium.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc7824b6ec9a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Splash Screen Flutter — Create customize Splash Screen for flutter(Android/iOS)]]></title>
            <link>https://rushabhshah065.medium.com/splash-screen-flutter-create-customize-splash-screen-for-flutter-android-ios-a380a199793c?source=rss-a8527c80c5af------2</link>
            <guid isPermaLink="false">https://medium.com/p/a380a199793c</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[widget]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[splash-screen]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Rushabh Shah]]></dc:creator>
            <pubDate>Sun, 29 Mar 2020 18:20:55 GMT</pubDate>
            <atom:updated>2021-07-16T07:45:16.838Z</atom:updated>
            <content:encoded><![CDATA[<h3>Splash Screen Flutter — Create customize Splash Screen for flutter(Android/iOS)</h3><p>Hey guys! I hope you all are enjoying awesome flutter!! In this article, I am going to show you creating a splash screen with pre-defined time with example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/373/1*V4Vz_A1XmBT-XtYRC864Vg.png" /><figcaption><strong>Customized Splash Screen</strong></figcaption></figure><p>I have created a splash screen with <em>Splash Image</em> and <em>Circular Progress Indicator</em>. Include <em>version name</em> too.</p><p>Here delay is for 5 seconds. So, after 5 seconds SplashScreen will be <strong>replaced</strong> by AfterSplashScreen widget.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FPiQejEf31116URju4V%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FPiQejEf31116URju4V%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FPiQejEf31116URju4V%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="261" frameborder="0" scrolling="no"><a href="https://medium.com/media/d5ed0e43fb3aa8fafc3156e0f75faeff/href">https://medium.com/media/d5ed0e43fb3aa8fafc3156e0f75faeff/href</a></iframe><blockquote>Here is the <strong>SplashScreen.dart</strong> file:</blockquote><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5760fdedbdceb73ad85a8479e5b0a8b3/href">https://medium.com/media/5760fdedbdceb73ad85a8479e5b0a8b3/href</a></iframe><p>Here, <strong>_loadWidget()</strong> async function is used for moving to the next widget after time completes.<strong>AfterSplash()</strong> in <strong>navigationPage()</strong> function is your next widget which you want to move/replace.</p><p>Other than this everything should be self-explanatory. We can use this widget directly in our RootApp Widget.</p><blockquote>Here is the <strong>main.dart</strong> file:</blockquote><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/94547167a7abeb030976d35be4c3a053/href">https://medium.com/media/94547167a7abeb030976d35be4c3a053/href</a></iframe><p><strong>A supporter is worth 1000 followers!!</strong></p><figure><a href="https://www.buymeacoffee.com/rushabhshah"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CWhTqddEauRJMxcWvbUyjQ.jpeg" /></a></figure><p>❤❤ Hey!! Enjoying reading my post, please show some LOVE! ❤❤</p><figure><a href="https://www.buymeacoffee.com/rushabhshah"><img alt="" src="https://cdn-images-1.medium.com/max/170/1*9vg3-OY14aZN1UpKwIxxZg.png" /></a></figure><p>If you like <strong>SMASH</strong> the <strong>CLAP</strong> 👏 Button and <strong>DISAPPEAR</strong> it from Medium.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a380a199793c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Run Lint on Kotlin Forcefully (before build/run)]]></title>
            <link>https://rushabhshah065.medium.com/run-lint-on-kotlin-forcefully-before-build-run-d3b06b68f33?source=rss-a8527c80c5af------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3b06b68f33</guid>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[lint]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Rushabh Shah]]></dc:creator>
            <pubDate>Wed, 12 Jun 2019 09:39:30 GMT</pubDate>
            <atom:updated>2021-07-16T07:46:03.210Z</atom:updated>
            <content:encoded><![CDATA[<p>Starting with the Android Gradle Plugin 3.1.0 you can apply <a href="https://developer.android.com/studio/write/lint">Android Lint</a> to Java / Kotlin modules.</p><p>You may find many articles regarding android lint and how to configure it. But this article focuses on how to forcefully run lint before build or app run.</p><h3>Setup</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2e3a143f3b0b5cc25e241794389eb1c0/href">https://medium.com/media/2e3a143f3b0b5cc25e241794389eb1c0/href</a></iframe><h3>Configuration</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/147a7a9403064eb64c3c44c40af0676a/href">https://medium.com/media/147a7a9403064eb64c3c44c40af0676a/href</a></iframe><p><strong>A supporter is worth 1000 followers!!</strong></p><figure><a href="https://www.buymeacoffee.com/rushabhshah"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CWhTqddEauRJMxcWvbUyjQ.jpeg" /></a></figure><p>❤❤ Hey!! Enjoying reading my post, please show some LOVE! ❤❤</p><figure><a href="https://www.buymeacoffee.com/rushabhshah"><img alt="" src="https://cdn-images-1.medium.com/max/170/1*9vg3-OY14aZN1UpKwIxxZg.png" /></a></figure><p>If you like <strong>SMASH</strong> the <strong>CLAP</strong> 👏 Button and <strong>DISAPPEAR</strong> it from Medium.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3b06b68f33" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Let’s move repository from Bitbucket to GitHub with all branches and commits!]]></title>
            <link>https://rushabhshah065.medium.com/lets-move-repository-from-bitbucket-to-github-with-all-branches-and-commits-f93c7d3bda67?source=rss-a8527c80c5af------2</link>
            <guid isPermaLink="false">https://medium.com/p/f93c7d3bda67</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[repositories]]></category>
            <category><![CDATA[bitbucket]]></category>
            <category><![CDATA[migration]]></category>
            <dc:creator><![CDATA[Rushabh Shah]]></dc:creator>
            <pubDate>Thu, 30 May 2019 07:26:07 GMT</pubDate>
            <atom:updated>2021-07-16T07:46:49.036Z</atom:updated>
            <content:encoded><![CDATA[<p>I am using Bitbucket for a long time as it provides unlimited private repositories but as now GitHub also provides this I started to move my repositories to GitHub as it provides very useful tools.</p><blockquote>Steps to move from Bitbucket to GitHub</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RwWXEDWSuSepnzv_gjz3ig.png" /></figure><h4>Step 1: Create GitHub repository</h4><p>First, create a new private repository on Github.com. It’s important to keep the repository empty, e.g. don’t check option <strong>Initialize this repository with a README</strong><em> </em>when creating the repository.</p><h4>Step 2: Move all your code and content</h4><p>Next, we need to fill the Github repository with the content from our Bitbucket repository:</p><ol><li>Check out the existing repository from Bitbucket:</li></ol><pre>$ git clone <a href="https://USER@bitbucket.org/USER/PROJECT.git">https://USER@bitbucket.org/USER/PROJECT.git</a></pre><p>2. Add the new GitHub repository as <strong>upstream remote</strong> of the repository checked out from Bitbucket:</p><pre>$ cd PROJECT<br>$ git remote add upstream <a href="https://github.com:USER/PROJECT.git">https://github.com:USER/PROJECT.git</a></pre><p>3. Push all branches (below: just <em>master</em>) and tags to the GitHub repository:</p><pre>$ git push upstream master<br>$ git push --tags upstream</pre><h4>Step 3: Add the URL of the new GitHub repository as redirect URL</h4><pre>$ git remote set-url origin <a href="https://github.com:USER/PROJECT.git">https://github.com:USER/PROJECT.git</a></pre><h4>Step 4: Clone all branches and tags to your GitHub repository</h4><pre>$ git push --mirror</pre><h4>Step 5: Clean up old repository</h4><p>Now If all contents move to GitHub double check it and after that delete Bitbucket repository if not required.</p><ol><li>Go to the web interface of the old Bitbucket repository</li><li>Select menu option <em>Setting &gt; Delete repository</em></li></ol><p>Voila your repository setup with GitHub!</p><p><strong>A supporter is worth 1000 followers!!</strong></p><figure><a href="https://www.buymeacoffee.com/rushabhshah"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CWhTqddEauRJMxcWvbUyjQ.jpeg" /></a></figure><p>❤❤ Hey!! Enjoying reading my post, please show some LOVE! ❤❤</p><figure><a href="https://www.buymeacoffee.com/rushabhshah"><img alt="" src="https://cdn-images-1.medium.com/max/170/1*9vg3-OY14aZN1UpKwIxxZg.png" /></a></figure><p>If you like <strong>SMASH</strong> the <strong>CLAP</strong> 👏 Button and <strong>DISAPPEAR</strong> it from Medium.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f93c7d3bda67" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Thanos landed on mars because of wrong map direction!!]]></title>
            <link>https://rushabhshah065.medium.com/thanos-landed-on-mars-because-of-wrong-map-direction-f05758f1b338?source=rss-a8527c80c5af------2</link>
            <guid isPermaLink="false">https://medium.com/p/f05758f1b338</guid>
            <category><![CDATA[avengers]]></category>
            <category><![CDATA[marvel]]></category>
            <category><![CDATA[thanos]]></category>
            <dc:creator><![CDATA[Rushabh Shah]]></dc:creator>
            <pubDate>Fri, 08 Mar 2019 13:35:54 GMT</pubDate>
            <atom:updated>2019-03-08T13:46:10.269Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey guys if you are marvel fan then you knows about THANOS Right!</p><p>He is the most powerful villains in the Marvel Universe and has clashed many heroes including the Avengers and destroy many planets of universe.</p><p>He already got 4 stones and finally found that last stone was on earth. He decided to land on earth using the map direction for the TIME STONE.</p><blockquote><strong>Now Just Imagine that Thanos would like to snap the Earth but because of wrong map direction he landed on Mars!!</strong></blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F6bdgwW6B0ooer3r8AZ%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F6bdgwW6B0ooer3r8AZ%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2F6bdgwW6B0ooer3r8AZ%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="275" frameborder="0" scrolling="no"><a href="https://medium.com/media/d43408079cdd620953433ffcff17c522/href">https://medium.com/media/d43408079cdd620953433ffcff17c522/href</a></iframe><blockquote><strong>Now WHAT??!!</strong></blockquote><p>As thanos wrongly landed on mars he was very angry because of direction fault. He saw some population on mars. People on mars were afraid by looking such a giant one. He was so much angry that he would like to destroy the whole population of mars. As people were afraid they start to scattered around. But these innocent people didn’t know the power of thanos SNAP.</p><p>Thanos lifted his hand up to destroy mass population on mars.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FxUOxfgwY8Tvj1DY5y0%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FxUOxfgwY8Tvj1DY5y0%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FxUOxfgwY8Tvj1DY5y0%2F200.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="180" frameborder="0" scrolling="no"><a href="https://medium.com/media/3a43fce93311f2c34713c56e0a467d39/href">https://medium.com/media/3a43fce93311f2c34713c56e0a467d39/href</a></iframe><p>As he was ready to snap he just saw a one pretty woman. She was innocently looking in thanos eyes. Thanos just paused and it was look like time was paused for 2 minutes. He went near pretty lady and amazed by her beauty.</p><p><strong><em>YES...You are thinking right it was the LOVE at first sight !!</em></strong></p><p>His love story on Mars had started and finally he proposed the girl. Thanos aim to destroy population of mars and free up the resources for future generation now was in Dilemma!! How he could snap his Love!</p><p>After some time spent with her girl he realized that he might be wrong for his decision. <em>He realized that the wrong map direction is not just a coincident. He found his love on mars because of wrong map direction.</em></p><p>Now his aim to destroy population and free up resources now changed. He started working on doubling the resources for future generation.</p><p>He was so much happy that he met the owner of map direction company. He organized a one press conference for announcement. He rewarded owner with making a king of one planet!!</p><blockquote><strong>“A woman can’t change a man because she loves him, a man changes himself because he loves her.”</strong></blockquote><p>If you like <strong>SMASH</strong> the <strong>CLAP</strong> 👏 Button and <strong>DISAPPEAR</strong> it from Medium.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f05758f1b338" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter : Navigation Drawer with Tab Layout]]></title>
            <link>https://rushabhshah065.medium.com/flutter-navigation-drawer-tab-layout-e74074c249ce?source=rss-a8527c80c5af------2</link>
            <guid isPermaLink="false">https://medium.com/p/e74074c249ce</guid>
            <category><![CDATA[navigation-drawer]]></category>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Rushabh Shah]]></dc:creator>
            <pubDate>Mon, 18 Jun 2018 08:22:32 GMT</pubDate>
            <atom:updated>2021-07-16T07:47:37.584Z</atom:updated>
            <content:encoded><![CDATA[<p>As an native android or iOS developer we all come across navigation drawer and tablayout functionality. Their is lot of document available for native but when it comes to flutter then!!</p><blockquote>The sole purpose for post is to get basic idea for developing an app with navigation drawer and tablayout integration in Android and iOS.</blockquote><h3><strong>What is Flutter??</strong></h3><p>As per official flutter website : <a href="https://flutter.io/">https://flutter.io/</a></p><p>Flutter is Google’s mobile app SDK for crafting high-quality native interfaces on iOS and Android in record time. Flutter works with existing code, is used by developers and organizations around the world, and is free and open source.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-gvp2p_VpMcvyfUt91bD2g.png" /></figure><h3>Show me CODE :</h3><blockquote>main.dart</blockquote><pre><strong>import </strong>&#39;package:flutter/material.dart&#39;;<br><strong>import </strong>&#39;package:flutter/cupertino.dart&#39;;<br><br><strong>void </strong>main() =&gt; runApp(<strong>new </strong>MyApp());<br><br><strong>class </strong>MyHomePage <strong>extends </strong>StatelessWidget {<br>  <strong>final </strong>String title;<br><br>  MyHomePage({Key key, <strong>this</strong>.title}) : <strong>super</strong>(key: key);<br><br>  @override<br>  Widget build(BuildContext context) {<br>    <strong>return </strong>Scaffold(<br>        appBar: <strong>new </strong>AppBar(<br>          title: Text(title),<br>        ),<br>        drawer: Drawer(<br>          child: ListView(<br>            children: &lt;Widget&gt;[<br>              DrawerHeader(<br>                child: Text(<br>                  &quot;Hello Andy!!&quot;,<br>                  textAlign: TextAlign.justify,<br>                  textScaleFactor: 2.0,<br>                ),<br>                decoration: BoxDecoration(color: Colors.<em>green</em>),<br>              ),<br>              ListTile(<br>                title: Text(&quot;First&quot;),<br>                onTap: () {<br>                  Navigator.<em>pop</em>(context);<br>                },<br>              ),<br>              ListTile(<br>                title: Text(&quot;Second&quot;),<br>                onTap: () {<br>                  Navigator.<em>pop</em>(context);<br>                },<br>              )<br>            ],<br>          ),<br>        ),<br>        body: <strong>new </strong>DefaultTabController(<br>          length: 3,<br>          child: <strong>new </strong>Scaffold(<br>            appBar: <strong>new </strong>AppBar(<br>              actions: &lt;Widget&gt;[],<br>              title: <strong>new </strong>TabBar(<br>                tabs: [<br>                  <strong>new </strong>Tab(icon: <strong>new </strong>Icon(Icons.<em>directions_car</em>)),<br>                  <strong>new </strong>Tab(icon: <strong>new </strong>Icon(Icons.<em>directions_transit</em>)),<br>                  <strong>new </strong>Tab(icon: <strong>new </strong>Icon(Icons.<em>directions_bike</em>)),<br>                ],<br>                indicatorColor: Colors.<em>white</em>,<br>              ),<br>            ),<br>            body: <strong>new </strong>TabBarView(<br>              children: [<br>                <strong>new </strong>Icon(Icons.<em>directions_car</em>,size: 50.0,),<br>                <strong>new </strong>Icon(Icons.<em>directions_transit</em>,size: 50.0,),<br>                <strong>new </strong>Icon(Icons.<em>directions_bike</em>,size: 50.0,),<br>              ],<br>            ),<br>          ),<br>        ));<br>  }<br>}<br><br><strong>class </strong>MyApp <strong>extends </strong>StatelessWidget {<br>  // This widget is the root of your application.<br>  @override<br>  Widget build(BuildContext context) {<br>    <strong>return new </strong>MaterialApp(<br>      debugShowCheckedModeBanner: <strong>false</strong>,<br>      title: &#39;Drawer Layout with Tabs&#39;,<br>      theme: <strong>new </strong>ThemeData(<br>        primaryColor: Colors.<em>green</em>,<br>      ),<br>      home: MyHomePage(title: &quot;Drawer Layout with Tabs&quot;),<br>    );<br>  }<br>}</pre><p><strong>A supporter is worth 1000 followers!!</strong></p><figure><a href="https://www.buymeacoffee.com/rushabhshah"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CWhTqddEauRJMxcWvbUyjQ.jpeg" /></a></figure><p>❤❤ Hey!! Enjoying reading my post, please show some LOVE! ❤❤</p><figure><a href="https://www.buymeacoffee.com/rushabhshah"><img alt="" src="https://cdn-images-1.medium.com/max/170/1*9vg3-OY14aZN1UpKwIxxZg.png" /></a></figure><h3><strong>Let me explain :</strong></h3><pre><strong>void </strong>main() =&gt; runApp(<strong>new </strong>MyApp());</pre><p>This is the starting point of the app. MyApp is the <strong>StatelessWidget</strong> which is our starting screen.</p><pre>home: MyHomePage(title: &quot;Drawer Layout with Tabs&quot;)</pre><p>MyHomePage is another <strong>StatelessWidget </strong>which is the container for Drawer Layout and Tab Widget.</p><p>In build method for MyHomePage I have created Drawer in drawer: tag. The ListView is the child for Drawer Layout container. DrawerHeader is the default property for Drawer Header Text and customization.</p><p>ListTile is used as a raw for ListView. We can add as many ListTile as we want as DrawerLayout Child.</p><pre>onTap: () {<br>            Navigator.<em>pop</em>(context);<br>          }</pre><p>onTap Property of ListTile is our Drawer Layout raw onClick. We can perform any action which we want to do or navigate to another widget.</p><p><strong>Navigator.pop(context)</strong> is used to close Drawer.</p><pre>body: <strong>new </strong>DefaultTabController(<br>          length: 3,<br>          child: <strong>new </strong>Scaffold(<br>            appBar: <strong>new </strong>AppBar(<br>              actions: &lt;Widget&gt;[],<br>              title: <strong>new </strong>TabBar(<br>                tabs: [<br>                  <strong>new </strong>Tab(icon: <strong>new </strong>Icon(Icons.<em>directions_car</em>)),<br>                  <strong>new </strong>Tab(icon: <strong>new </strong>Icon(Icons.<em>directions_transit</em>)),<br>                  <strong>new </strong>Tab(icon: <strong>new </strong>Icon(Icons.<em>directions_bike</em>)),<br>                ],<br>                indicatorColor: Colors.<em>white</em>,<br>              ),<br>            ),<br>            body: <strong>new </strong>TabBarView(<br>              children: [<br>                <strong>new </strong>Icon(Icons.<em>directions_car</em>,size: 50.0,),<br>                <strong>new </strong>Icon(Icons.<em>directions_transit</em>,size: 50.0,),<br>                <strong>new </strong>Icon(Icons.<em>directions_bike</em>,size: 50.0,),<br>              ],<br>            ),<br>          ),<br>        ));</pre><p>This is the body part of our widget which contains TabLayout Widget. TabLayout is provided as default by MaterialApp. <strong>DefaultTabController</strong> is default tab controller. Length property is used as tab count.</p><p><strong>TabBar</strong> is used as tab container in which we define Tab name/icon as per requirement using Tab constructor. <strong>IndicatorColor</strong> is used for tab indicator highlight color.</p><p>We can compare <strong>TabBarView </strong>as an viewpager in Android. Now that we have tabs, we’ll want to display content when a tab is selected. For this purpose, we’ll employ the TabBarView Widget.</p><p><em>Note:</em> Order is important and must correspond to the order of the tabs in the TabBar!</p><p>Reference :</p><p><strong>TabLayout</strong> : <a href="https://flutter.io/cookbook/design/tabs/">Working with Tabs</a></p><p><strong>DrawerLayout</strong> : <a href="https://flutter.io/cookbook/design/drawer/">Add a Drawer to a screen</a></p><p>If you like <strong>SMASH</strong> the <strong>CLAP</strong> 👏 Button and <strong>DISAPPEAR</strong> it from Medium.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e74074c249ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>