This blog is meant for Android developers looking to apply their existing Android knowledge to build mobile apps with Flutter. In this blog, we are going to explore what is equivalent design widget for LinearLayout in Flutter.
Series
- How to design Activity UI in Flutter.
- How to design LinearLayout in Flutter. (You are here)
- How to design FrameLayout in Flutter.
Prerequisites
This blog already assumes that you have already setup the flutter in your PC and able to run a Hello World app. If you have not install flutter yet, gets started from here.
Dart is based on the object-oriented concept so as android java developer you will be able to catch up dart very easily.
Let’s get started
If you are an Android Developer then I assumes that you have heavily used LinearLayout while designing the layout. Those who are still not familiar with LinearLayout let me start with an official definition.
LinearLayout is a layout that arranges other views either horizontally in a single Column or vertically in a single Row.
As above visual representation and the definition itself, you can make out what is the equivalent widget in Flutter. Yes, you are right they are Row and Column. This two widget have almost same behavior as the LinearLayout in native Android. Row and columns are heavily used in flutter too.
Note: The Row/Column w