Sometimes we want to show a line or a paragraph with multiple styles such as bold, italicized, underlined, different color, different font or everything at once. In that case, we should have to use the RichText widget that allows us to perform multiple test styles without switching many widgets. RichText is a very useful widget in Flutter,… Continue reading Flutter Rich Text Widget
Month: April 2022
Text Widget Constructor:
The text widget constructor used to make the custom look and feel of our text in Flutter: The following are the essential properties of the Text widget used in our application: TextAlign: It is used to specify how our text is aligned horizontally. It also controls the text location. TextDirection: It is used to determine how textAlign values… Continue reading Text Widget Constructor:
Flutter Text
A Text is a widget in Flutter that allows us to display a string of text with a single line in our application. Depending on the layout constraints, we can break the string across multiple lines or might all be displayed on the same line. If we do not specify any styling to the text widget,… Continue reading Flutter Text
Drawbacks OF Row and Column Widget:
Row widget in Flutter does not have horizontal scrolling. So if we have inserted a large number of children in a single row that cannot be fit in that row, we will see the Overflow message. Column widget in Flutter does not have vertical scrolling. So if we have inserted a large number of children… Continue reading Drawbacks OF Row and Column Widget:
Column
This widget arranges its children in a vertical direction on the screen. In other words, it will expect a vertical array of children widgets. If the child widgets need to fill the available vertical space, we must wrap the children widgets in an Expanded widget. A column widget does not appear scrollable because it displays the widgets… Continue reading Column
Row Widget
This widget arranges its children in a horizontal direction on the screen. In other words, it will expect child widgets in a horizontal array. If the child widgets need to fill the available horizontal space, we must wrap the children widgets in an Expanded widget. A row widget does not appear scrollable because it displays the widgets… Continue reading Row Widget
Row and Column
In the previous sections, we have learned to create a simple Flutter application and its basic styling to the widgets. Now, we are going to learn how to arrange the widgets in rows and columns on the screen. The rows and columns are not a single widget; they are two different widgets, namely Row and Column.… Continue reading Row and Column
Properties of Container widget and other
Let us learn some of the essential properties of the container widget in detail. 1. child: This property is used to store the child widget of the container. Suppose we have taken a Text widget as its child widget that can be shown in the below example: 2. color: This property is used to set the background color… Continue reading Properties of Container widget and other
Why we need a container widget in Flutter?
If we have a widget that needs some background styling may be a color, shape, or size constraints, we may try to wrap it in a container widget. This widget helps us to compose, decorate, and position its child widgets. If we wrap our widgets in a container, then without using any parameters, we would not… Continue reading Why we need a container widget in Flutter?
Flutter Container
he container in Flutter is a parent widget that can contain multiple child widgets and manage them efficiently through width, height, padding, background color, etc. It is a widget that combines common painting, positioning, and sizing of the child widgets. It is also a class to store one or more widgets and position them on the screen… Continue reading Flutter Container