build method
Describes the part of the UI represented by this widget.
Implementation
@override
Widget build(BuildContext context) {
final theme = ThemeScope.of(context);
final dTheme = theme.dialogTheme;
final bg =
background ?? dTheme?.footerBackground ?? theme.resolvedSurfaceVariant;
final pad =
padding ?? const EdgeInsets.only(left: 2, right: 3, top: 1, bottom: 1);
final hintFg = dTheme?.hintForeground ?? theme.muted;
return Frame(
background: bg,
padding: pad,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
// Left: action buttons
Row(gap: 1, children: actions),
// Right: keyboard hints
Row(
gap: 2,
children: [
for (final hint in hints)
_FooterHint(
keyLabel: hint.key,
description: hint.description,
foreground: hintFg,
),
],
),
],
),
);
}