floatingLabelAlignment property
final
Defines where the floating label should be displayed.
FloatingLabelAlignment.start aligns the floating label to the leftmost (when TextDirection.ltr) or rightmost (when TextDirection.rtl), possible position, which is vertically adjacent to the label, on top of the field.
FloatingLabelAlignment.center aligns the floating label to the center on top of the field.
If null, InputDecorationTheme.floatingLabelAlignment will be used.
See also:
- floatingLabelBehavior which defines how the floating label should behave.
Implementation
final FloatingLabelAlignment? floatingLabelAlignment;