build method

  1. @override
Component build(
  1. BuildContext context
)

Describes the part of the user interface represented by this component.

Implementation

@override
Component build(BuildContext context) {
  return Padding(
    padding: const EdgeInsets.symmetric(vertical: 0),
    child: Container(
      decoration: BoxDecoration(
        border: BoxBorder.all(color: Colors.brightBlack),
      ),
      child: Padding(
        padding: const EdgeInsets.all(1),
        child: Column(
          children: [
            Text(
              section.title,
              style: const TextStyle(
                color: Colors.cyan,
                fontWeight: FontWeight.bold,
              ),
            ),
            const Divider(),
            ...section.checks.map(CheckRow.new),
          ],
        ),
      ),
    ),
  );
}