Sign in


These are series on how to set up environments in Flutter. There are just a few guides on the internet but they are complicated, I want to make a minimal and detailed guide for developers.

In part 1, you are enabled to set up Flavor for Flutter. To run or…


These are series on how to setup environments in Flutter. There are just few guides in the internet but they are complicated, I want to make a minimal and detailed guide for developers.

In part 1, you are enabled to set up Flavor for Flutter. To run or build the project on Android device or simulator, you also have to set up Flavors for Android.

In this article, I will guide how to set up a minimum Flavor for Android.

In android/app/build.gradle, in android object, add flavorDimensions and productFlavors


These are series on how to set up environments in Flutter. There are just a few guides on the internet but they are complicated, I want to make a minimal and detailed guide for developers.

In this article, I will guide how to set up a minimum Flavor for Flutter.


Let’s make internationalization in the easiest way

In the first and second parts, you may be exhausted with the implementation of translation with JSON and .arb. Well, not this time. We will continue to use .arb file but together with Android Studio plugin name flutter-i18n.

Which thing in the second approach makes you most tired? Is that…


Let’s make internationalization in Dart way

In the first part, you have known how to use JSON resources for internationalization in Flutter. In this part, we will try to use some specific libraries of Dart to implement internationalization.

In this approach, we will use intl package and the resources is not JSON files anymore but .arb


If you are going to make a global app with flutter, then you are in the right place. :D

Introduction

What we often require in internationalization are the translations for each locale and the placeholder function. In this article, I will help you with 3 ways to archive those requirements with your flutter project! But firstly, we should go through an overview:

In order to make readers easy to follow…


Dry using sunlight :))

Have you ever felt that you repeat too much when writing redux? Regularly, when we fetch an api, we have to manage the process with 5 actions:

start

This call the action for start fetching from api

succeed

If the request succeeded (no throw error), call this

fail

If the request failed (throw…


Number 3

  1. A function or a variable must be named less than 3 words, best at only 1 word, for example: if component input only has on properties “onChangeInput”, the function name must be reduced to “change”
  2. In a Component, arrange 3 properties in a line in Component declared

Don’t repeat yourself (Don’t repeat third time and combine if possible)

  1. Don’t repeat logic…

Angular community is always happy because they have style guild for their tech. There have been no style guides for React yet, so in this post I will show my coding style to clean up my code.

Let make code clean :D

In a Component, there are many functions, some available functions are render, componentWillMount…

vo9312

Love running trail, programming, designing, playing piano, writing blogs, doing calisthenics, and more

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store