build method
Describes the part of the user interface represented by this component.
Implementation
@override
Component build(BuildContext context) {
final st = context.simutilTheme;
return Center(
child: Focusable(
focused: true,
onKeyEvent: _handleKeyEvent,
child: Container(
margin: EdgeInsets.all(16),
decoration: st.dialogPanel(title),
child: Padding(
padding: EdgeInsets.all(1),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min,
children: [
Text(' $message', style: st.body),
SizedBox(height: 1),
Divider(),
Text(' Confirm: <enter> | Cancel: <esc>', style: st.dimmed),
],
),
),
),
),
);
}