fix: remove ugly AlertDialog animation

This commit is contained in:
Alberto Ponces
2022-09-02 00:10:41 +01:00
parent 7723bb717c
commit 65e2814b99

View File

@ -135,12 +135,9 @@ class _PatchItemState extends State<PatchItem> {
} }
Future<void> _showUnsupportedWarningDialog() { Future<void> _showUnsupportedWarningDialog() {
return showGeneralDialog( return showDialog(
context: context, context: context,
pageBuilder: (ctx, a1, a2) => Container(), builder: (context) => AlertDialog(
transitionBuilder: (ctx, a1, a2, child) => Transform.scale(
scale: Curves.easeInOut.transform(a1.value),
child: AlertDialog(
title: I18nText('patchItem.alertDialogTitle'), title: I18nText('patchItem.alertDialogTitle'),
content: I18nText( content: I18nText(
'patchItem.alertDialogText', 'patchItem.alertDialogText',
@ -160,8 +157,6 @@ class _PatchItemState extends State<PatchItem> {
], ],
backgroundColor: Theme.of(context).colorScheme.surface, backgroundColor: Theme.of(context).colorScheme.surface,
), ),
),
transitionDuration: const Duration(milliseconds: 400),
); );
} }
} }