Flutter Material UI TextAlign Enum

Whether and how to align text horizontally.


TextAlign Constants

  • TextAlign.center: Align the text in the center of the container.

  • TextAlign.end: Align the text on the trailing edge of the container.

  • TextAlign.justify: Stretch lines of text that end with a soft line break to fill the width of the container.

  • TextAlign.left: Align the text on the left edge of the container.

  • TextAlign.right: Align the text on the right edge of the container.

  • TextAlign.start: Align the text on the leading edge of the container.

  • TextAlign.values: A constant List of the values in this enum, in order of their declaration.

Reference