build method
Describes the part of the UI represented by this widget.
Implementation
@override
Widget build(BuildContext context) {
final theme = ThemeScope.of(context);
final bg = background ?? theme.surface;
final fg = foreground ?? theme.onSurface;
final fgStyle = _copyStyle(theme.bodySmall)..foreground(fg);
return Container(
padding:
padding ?? const EdgeInsets.symmetric(horizontal: 1, vertical: 0),
color: bg,
child: _buildLayout(fgStyle, fg),
);
}