Most commonly used Flutter widgets

CodeWithFlutter
2 Min Read

Flutter has a large collection of widgets that you can use to build your user interface. Some of the most commonly used widgets are:

  1. Container: A box that can contain other widgets.
    • Properties: child, alignment, padding, margin, decoration, etc.
  2. Text: A widget for displaying a short piece of text.
    • Properties: data, style, textAlign, maxLines, overflow, etc.
  3. Image: A widget for displaying an image.
    • Properties: image, width, height, fit, alignment, repeat, etc.
  4. RaisedButton: A material design raised button.
    • Properties: child, onPressed, color, elevation, shape, etc.
  5. Scaffold: The basic layout structure of an app, providing a default app bar, body, and floating action button.
    • Properties: appBar, body, floatingActionButton, backgroundColor, etc.
  6. ListView: A scrollable list of widgets.
    • Properties: children, scrollDirection, reverse, controller, etc.
  7. Card: A material design card.
    • Properties: child, elevation, shape, margin, clipBehavior, etc.
  8. Expanded: A widget that expands to fill the available space.
    • Properties: child, flex, fit, alignment, etc.
  9. Column: A widget that displays its children in a vertical arrangement.
    • Properties: children, mainAxisAlignment, crossAxisAlignment, textDirection, etc.
  10. Row: A widget that displays its children in a horizontal arrangement.
    • Properties: children, mainAxisAlignment, crossAxisAlignment, textDirection, etc.

These are just a few examples of the many widgets available in Flutter. Each widget has a set of properties that you can use to customize its behavior and appearance. For a complete list of available widgets and their properties, you can refer to the Flutter documentation.

Share this Article
Leave a comment