build method
dynamic
build( - dynamic context
)
Implementation
@override
Widget build(BuildContext context) {
return Container(
margin: const EdgeInsets.symmetric(
horizontal: 20,
vertical: 10,
),
child: SingleChildScrollView(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
SvgPicture.asset(
image,
semanticsLabel: L10n.of(context).state,
height: imageSize,
width: imageSize,
),
const SizedBox(
height: 10,
),
if (title != null)
Text(
title!,
style: Theme.of(context).textTheme.titleMedium,
),
const SizedBox(
height: 10,
),
if (subtitle != null)
Text(
subtitle!,
textAlign: TextAlign.center,
style: Theme.of(context).textTheme.bodySmall,
),
const SizedBox(
height: 10,
),
if (primaryButton != null) primaryButton!,
const SizedBox(
height: 10,
),
if (secondaryButton != null) secondaryButton!,
],
),
),
);
}