background method

Widget background(
  1. BuildContext context
)

Override to specify the background. This is rendered behind the body.

Implementation

Widget background(BuildContext context) {
  return ColoredBox(
    color: Theme.of(context).colorScheme.surface,
    child: const SizedBox.expand(),
  );
}