Skip to main content

UnderlineInputBorder

Draws a horizontal line along the bottom edge of the decoration's container.

Inherits: InputBorder

Properties

  • border_radius - The radii of the container's corners.
  • side - The color and weight of the underline.

Properties

border_radiusclass-attributeinstance-attribute

border_radius: BorderRadiusValue = field(
    default_factory=lambda: BorderRadius.only(
        top_left=4, top_right=4
    )
)

The radii of the container's corners.

Only the top corners are rounded by default. The radius shapes/clips the fill of the decoration's container (visible when FormFieldControl.filled is True); the drawn border remains the bottom line.

sideclass-attributeinstance-attribute

side: BorderSide | None = None

The color and weight of the underline.

If None (the default), the color and weight are resolved by the Material theme for each interactive state — for example, the focused underline uses the theme's primary color. An explicit side applies to the enabled state; provide per-state borders on FormFieldControl.border for full control.