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.
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.
Google has announced new flutter 1.20 stable with many improvements, and features, enabling flutter for Desktop and Web
Recently Adobe XD releases a new version of the plugin that you can use to export designs directly into flutter widgets or screens.
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 #Firebase #Google #FlutterUI #Firestore The Growing Developer Website is out !! http://thegrowingdeveloper.org Welcome back to yet another #Firebase...
GetX Flutter Tutorials - Route Management