Flutter Flavoring 101

Flutter Flavoring 101

Flutter Flavoring 101. How to set up flavors in Flutter and why you need them. That’s one of the flavors use cases. In this article, I’m going to use the term flavour since that is the name used by Flutter.

Why do you need flavors? Let’s say there’s an app with integrated analytics. This means there are developers, testers, and end-users. All three groups use the same version of the app. One day, you decide to analyze users’ interest in feature A. What do you do if that’s the case? You go to Analytics and check the total number of uses for that feature (say, screen views).

What you find there is that there have been numerous views, which is by no means possible, given the current audience reach. Besides, all these screen views were registered over a particular period of time.

You dig a little deeper and see that the feature was being tested at the time. And before that, the feature had been at the development stage. And that also involved collecting data for analytics. What you get is inaccurate, low-quality analytics based on dirty data. Replace ‘analytics’ with push notifications, crash reporting, etc.

The perfect solution to this problem would be splitting the app into two slightly modified versions, for example, with different Bundle IDs (package-names). Developers and testers use only the dev version and users — the prod one.

That’s one of the flavors’ use cases. In this article, I’m going to use the term ‘flavor’ since that is the name used by Flutter. People familiar with Android development, I think, would immediately recognize this mechanism.

#Flavoring Flutter?

Well, we figured out WHAT you need to do. But HOW to do it? Is flavoring Flutter as simple as they say?

First, let’s define dealing with flavors as a purely native task. Information about them won’t be available from the dart code. That’s why we’ll turn to native mobile development for setup methods.

flutter flutter-tutorial

What is Geek Coin

What is GeekCash, Geek Token

Best Visual Studio Code Themes of 2021

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Google's Flutter 1.20 stable announced with new features - Navoki

Google has announced new flutter 1.20 stable with many improvements, and features, enabling flutter for Desktop and Web

Adobe XD plugin for Flutter with CodePen Tutorial

Recently Adobe XD releases a new version of the plugin that you can use to export designs directly into flutter widgets or screens.

What is Flutter and why you should learn it?

Flutter is an open-source UI toolkit for mobile developers, so they can use it to build native-looking Android and iOS applications from the same code base for both platforms. Flutter is also working to make Flutter apps for Web, PWA (progressive Web-App) and Desktop platform (Windows,macOS,Linux).

Flutter Tutorial - Cloud Firestore🔥 | Flutter Firestore CRUD | Flutter Firestore Tutorial

#Flutter #Firebase #Google #FlutterUI #Firestore The Growing Developer Website is out !! http://thegrowingdeveloper.org Welcome back to yet another #Firebase...