update style of user interaction dialog

This commit is contained in:
Adam Velebil 2024-04-16 13:25:20 +02:00
parent 059fdbf870
commit 7063f64e08
No known key found for this signature in database
GPG Key ID: C9B1E4A3CBBD2E10

View File

@ -75,6 +75,8 @@ class _UserInteractionDialogState extends State<_UserInteractionDialog> {
@override
Widget build(BuildContext context) {
Widget? icon = widget.controller.icon;
final theme = Theme.of(context);
return AlertDialog(
scrollable: true,
content: SizedBox(
@ -93,11 +95,15 @@ class _UserInteractionDialogState extends State<_UserInteractionDialog> {
),
Text(
widget.controller.title,
style: Theme.of(context).textTheme.titleLarge,
style: theme.textTheme.titleLarge,
textAlign: TextAlign.center,
),
Text(
widget.controller.description,
textAlign: TextAlign.center,
style: theme.textTheme.bodyMedium!.copyWith(
color: theme.colorScheme.onSurfaceVariant,
),
softWrap: true,
),
],