underlineBorder static method

InputBorder underlineBorder(
  1. BuildContext context, {
  2. Color? color,
  3. double width = 1,
})

Underline-only border (Material-style).

Implementation

static InputBorder underlineBorder(
  BuildContext context, {
  Color? color,
  double width = 1,
}) {
  return UnderlineInputBorder(
    borderSide: BorderSide(
      color: color ?? Theme.of(context).colorScheme.outlineVariant,
      width: width,
    ),
  );
}