mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2025-07-03 23:46:45 +08:00
fix: remove ugly AlertDialog animation
This commit is contained in:
@ -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),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user