roundedBorder static method
InputBorder
roundedBorder(
- BuildContext context, {
- Color? color,
- double radius = 24,
- 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,
),
);
}