lightRectangle static method

CodeInputBuilder lightRectangle({
  1. Size totalSize = const Size(50.0, 60.0),
  2. Size emptySize = const Size(20.0, 20.0),
  3. Size filledSize = const Size(40.0, 60.0),
  4. BorderRadius borderRadius = BorderRadius.zero,
})

Builds the input inside a light rectangle.

Implementation

static CodeInputBuilder lightRectangle({
  Size totalSize = const Size(50.0, 60.0),
  Size emptySize = const Size(20.0, 20.0),
  Size filledSize = const Size(40.0, 60.0),
  BorderRadius borderRadius = BorderRadius.zero,
}) {
  return rectangle(
      totalSize: totalSize,
      emptySize: emptySize,
      filledSize: filledSize,
      borderRadius: borderRadius,
      border: Border.all(color: Colors.white, width: 2.0),
      color: Colors.white10,
      textStyle: TextStyle(
          color: Colors.white, fontSize: 20.0, fontWeight: FontWeight.bold));
}