diff --git a/lib/app/message.dart b/lib/app/message.dart index 916c5c95..31ffd054 100755 --- a/lib/app/message.dart +++ b/lib/app/message.dart @@ -1,5 +1,4 @@ import 'dart:async'; -import 'dart:io'; import 'dart:ui'; import 'package:flutter/material.dart'; @@ -56,20 +55,13 @@ Future showBlurDialog({ barrierColor: Colors.black12, pageBuilder: (ctx, anim1, anim2) => builder(ctx), transitionDuration: const Duration(milliseconds: 150), - transitionBuilder: (ctx, anim1, anim2, child) { - var sigma = 20 * anim1.value; - // Flutter 3.3 has an issue with rendering this on Android. - // Workaround: Don't animate the un-blur. - if (Platform.isAndroid && anim1.status == AnimationStatus.reverse) { - sigma = 0; - } - return BackdropFilter( - filter: ImageFilter.blur(sigmaX: sigma, sigmaY: sigma), - child: FadeTransition( - opacity: anim1, - child: child, - ), - ); - }, + transitionBuilder: (ctx, anim1, anim2, child) => BackdropFilter( + filter: ImageFilter.blur( + sigmaX: 20 * anim1.value, sigmaY: 20 * anim1.value), + child: FadeTransition( + opacity: anim1, + child: child, + ), + ), routeSettings: routeSettings, );