mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-23 10:11:52 +03:00
update style of user interaction dialog
This commit is contained in:
parent
059fdbf870
commit
7063f64e08
@ -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,
|
||||
),
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user