circle static method

CodeInputBuilder circle({
  1. double totalRadius = 30.0,
  2. double emptyRadius = 10.0,
  3. double filledRadius = 25.0,
  4. required Border border,
  5. required Color color,
  6. required TextStyle textStyle,
})

Builds the input inside a circle.

Implementation

static CodeInputBuilder circle(
    {double totalRadius = 30.0,
    double emptyRadius = 10.0,
    double filledRadius = 25.0,
    required Border border,
    required Color color,
    required TextStyle textStyle}) {
  final decoration = BoxDecoration(
    shape: BoxShape.circle,
    border: border,
    color: color,
  );

  return containerized(
      totalSize: Size.fromRadius(totalRadius),
      emptySize: Size.fromRadius(emptyRadius),
      filledSize: Size.fromRadius(filledRadius),
      emptyDecoration: decoration,
      filledDecoration: decoration,
      emptyTextStyle: textStyle.copyWith(fontSize: 0.0),
      filledTextStyle: textStyle);
}