<?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 Ramie Chaarani on Medium]]></title>
        <description><![CDATA[Stories by Ramie Chaarani on Medium]]></description>
        <link>https://medium.com/@ramiechaarani?source=rss-fdfb0d93cb93------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*u8mI5hkj1n2ikcIL.</url>
            <title>Stories by Ramie Chaarani on Medium</title>
            <link>https://medium.com/@ramiechaarani?source=rss-fdfb0d93cb93------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 16:35:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ramiechaarani/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[How to make a white label app in Flutter]]></title>
            <link>https://medium.com/@ramiechaarani/how-to-make-a-white-label-app-in-flutter-6c3ea40fd7d5?source=rss-fdfb0d93cb93------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c3ea40fd7d5</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[white-label]]></category>
            <dc:creator><![CDATA[Ramie Chaarani]]></dc:creator>
            <pubDate>Sat, 27 Jun 2020 16:53:14 GMT</pubDate>
            <atom:updated>2020-08-04T05:28:38.435Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Flutter White Label Apps Made Simple: What You Need to Know</strong></h3><p>I had been trying to create a white label product through Flutter for quite some time. All I was finding were resources for other frameworks like React Native and Vue.js. A little annoying but I also realize Flutter is fairly new.</p><p>After a bit of noodling around I figured out a solution. I know there is a concept of <a href="https://flutter.dev/docs/deployment/flavors">flavors</a> in Flutter but for my specific use case it didn’t seem to be a perfect fit.</p><h3>What is a white label?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/546/1*vX3fsmWONiG4DDe1iwe4qQ.png" /></figure><p>In case you somehow find this article without the actually knowing what a white label app is: White labeling is when a product (I will be referring to the product as the <strong>platform</strong>) removes their labeling on it so that a purchaser can use their own branding (I’ll refer to this as the <strong>brand app) </strong>on the platform.</p><h3>Enough with the chatter and get to it.</h3><p>Ok.</p><p>So in our example we are going to use the default flutter counter app as a prime example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*Vhhvsgs1W9JGTKXDfdv8mA.jpeg" /></figure><p>In our example we would like to create a <strong>platform </strong>that uses different copy in the header. In the brand apps we would like one to say “What are they selling?” and in the other brand app we would like it to say “CHOCOLATE!”. Simple example but I think it does the trick in explaining how to do this.</p><h4>Step 1</h4><p>Create a brand new flutter app called <strong>platform</strong> (I’m using Android studio and it automatically creates the button counter for me).</p><h4>Step 2</h4><p>Create a config directory in the same root folder of your lib directory:</p><pre>lib/<br>config/<br>  pubspec.yaml<br>  lib/<br>    Config.dart</pre><h4>Step 3</h4><p>Set the pubspec.yaml in the config file to look like this:</p><pre># pubspec.yaml<br>name: config<br>description: Config for Clients.<br>version: 1.0.0<br>environment:<br>sdk: “&gt;=2.2.0 &lt;3.0.0”</pre><h4>Step 4</h4><p>The Config.dart can contain the specific modifications for each <strong>brand app </strong>as follows:</p><p>Note: The Config.dart will be the file that holds all of your brand app specific variables</p><pre>// Config.dart<br>const APP_HEADING_COPY = ‘BASE APP HEADING’;</pre><h4>Step 5</h4><p>Now add your config to the pubspec.yaml of the <strong>platform</strong> as follows:</p><pre>dependencies:<br><strong>  config:<br>    path: config</strong><br>  flutter:<br>    sdk: flutter</pre><h4>Step 6</h4><p>Run <strong>pub get</strong> to pull the config library</p><h4>Step 7</h4><p>In your main.dart add the following import code to bring in the config data as a package. Make sure you do not bring it in as a relative path:</p><pre><strong>import ‘package:config/Config.dart’;</strong></pre><h4>Step 8</h4><p>Now that you have your config set up with the APP_HEADING_COPY use that in your main.dart in place of the ‘Flutter Demo Home Page’ copy.</p><pre>class MyApp extends StatelessWidget {<br>  // This widget is the root of your application.<br>  @override<br>  Widget build(BuildContext context) {<br>    return MaterialApp(<br>      title: &#39;Flutter Demo&#39;,<br>      theme: ThemeData(<br>        primarySwatch: Colors.<em>blue</em>,<br>        visualDensity: VisualDensity.<em>adaptivePlatformDensity</em>,<br>      ),<br>      home: MyHomePage(title: <strong>APP_HEADING_COPY</strong>),<br>    );<br>  }<br>}</pre><h4>Step 9</h4><p>Now it’s time to set up a <strong>brand app</strong>!</p><p>Go through the same process of making a new flutter app that we highlighted before in step 1.</p><p>Our first one will be called <strong>brand_app1</strong>. Make sure it is in the same directory as your <strong>platform</strong>.</p><pre>$WORKSPACE_DIR/platform/<br>$WORKSPACE_DIR/brand_app1</pre><h4>Step 10</h4><p>Now add a config directory in the exact same way we did in step 2 (pubspec and all). Make sure to change the APP_HEADING_COPY to your desired copy. For us we did the following</p><pre>// Config.dart<br>const APP_HEADING_COPY = ‘What are they selling?’;</pre><h4>Step 11</h4><p>In the main.dart of the <strong>brand_app1</strong> make sure update the pubspec.yaml as follows:</p><pre>dependencies:<br>  <strong>base_project:<br>    path: ../base_project</strong></pre><pre><strong>dependency_overrides:<br>  config:<br>    path: config</strong></pre><p><strong>Step 12</strong></p><p>run <strong>pub get</strong></p><h4>Step 13</h4><p>Now go to your main.dart in <strong>brand_app1</strong>, delete all of the code and replace it with the following:</p><pre>import ‘package:base_project/main.dart’ as entry;<br>void main() =&gt; entry.main();</pre><p>You can now run the app and you will see your newly branded <strong>brand_app1</strong> app using the underlying <strong>platform</strong> application as a white label product.</p><h4>Step 14</h4><p>Now that you’ve set this up you can do the same with a <strong>brand_app2 </strong>and change the copy to “CHOCOLATE!”.</p><h4>Example Repo:</h4><p>For the fully realized repo see it here: <a href="https://github.com/ramiechaarani/whitelabel-flutter">https://github.com/ramiechaarani/whitelabel-flutter</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*zDlyjXjInkwwQv2hSCSCUw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*gUsAbmeq2WPTnkUdXgWjAA.png" /></figure><h4>What to do from here?</h4><p>So assuming you made it this far you’ll have made your very first white label Flutter app. The beauty of this is that you can always hop into the <strong>platform</strong> codebase and continue creating a whole app, while the <strong>brand_app1 </strong>and <strong>brand_app2 </strong>will take on those changes.</p><p>I personally love the fact that all of my code can be managed in one place. I’ve tried so many different solutions and this one seems to be the best when it comes to managing white label products in Flutter.</p><p>So from here you can choose to keep building. Hopefully this helps you on your side project, business or whatever it is you’re trying to do at the moment.</p><p>If you have any questions or can think of any optimizations to this flow I’d love to hear it.</p><h3>Shoutout</h3><p>I’d love to give a special shoutout to the /r/FlutterDev community and in particular a user named HaMMeReD who has since deleted his account. He pretty much helped walk me through this solution. Without his help I’m not sure I would have found as robust of a solution.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c3ea40fd7d5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>