toWidget method

  1. @override
Widget toWidget(
  1. RenderContext context
)
override

Implementation

@override
Widget toWidget(RenderContext context) {
  return Container(
    key: AnchorKey.of(context.parser.key, this),
    padding: style.padding?.nonNegative,
    margin: style.margin?.nonNegative,
    alignment: style.alignment,
    decoration: BoxDecoration(
      color: style.backgroundColor,
      border: style.border,
    ),
    width: style.width,
    height: style.height,
    child: LayoutBuilder(builder: (_, constraints) => _layoutCells(context, constraints)),
  );
}