build method
dynamic
build( - dynamic context
)
Implementation
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 20.0),
child: Column(
children: [
const SizedBox(height: 20),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
L10n.of(context).encryptedChatMessageInfoTitle,
style: Theme.of(context).textTheme.headlineSmall,
),
if (context.canPop())
TextButton(
onPressed: () => Navigator.pop(context),
child: Text(
L10n.of(context).close,
),
),
],
),
const SizedBox(height: 20),
Text(
L10n.of(context).encryptedChatMessageInfo,
style: Theme.of(context).textTheme.bodySmall,
),
const SizedBox(height: 20),
OutlinedButton(
onPressed: () => Navigator.pop(context),
child: Text(L10n.of(context).close),
),
],
),
);
}