Categories

Pages

Links

Essential Flutter Widgets

  • Widgets
  • January 19, 2024


Flutter provides a rich set of pre-built widgets that you can use to build user interfaces. Here are some of the commonly used Flutter widgets:

1 Text Widget

The Text widget displays a string of text with single style. The string might break across multiple lines or might all be displayed on the same line depending on the layout constraints. 

Here textAlign property refers to how the text will align in the assigned space. It can be centered, left or right. 

The overflow refers to how the text will behave if the current text doesn't fit in the assigned space. You can show a ... with the ellipsis property.

The style takes a TextStyle() prperty where you can set the color, size, weight and several other styling components to style the text widget.

 

Comments