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