roundedBorder static method

InputBorder roundedBorder(
  1. BuildContext context, {
  2. Color? color,
  3. double radius = 24,
  4. double width = 1.2,
})

Rounded border with soft edges.

Implementation

static InputBorder roundedBorder(
  BuildContext context, {
  Color? color,
  double radius = 24,
  double width = 1.2,
}) {
  return OutlineInputBorder(
    borderRadius: BorderRadius.circular(radius.r),
    borderSide: BorderSide(
      color: color ?? Theme.of(context).colorScheme.outline,
      width: width,
    ),
  );
}