committed by
GitHub
parent
14a15dedbe
commit
fda9ecfef7
@@ -115,7 +115,6 @@ class _FilteredChildAnimationPageState extends State<FilteredChildAnimationPage>
|
||||
opacity: (_controller.value * 2.0 - 1.0).abs(),
|
||||
child: child,
|
||||
);
|
||||
break;
|
||||
case FilterType.rotateTransform:
|
||||
builder = (BuildContext context, Widget? child) => Transform(
|
||||
transform: Matrix4.rotationZ(_controller.value * 2.0 * pi),
|
||||
@@ -123,7 +122,6 @@ class _FilteredChildAnimationPageState extends State<FilteredChildAnimationPage>
|
||||
filterQuality: FilterQuality.low,
|
||||
child: child,
|
||||
);
|
||||
break;
|
||||
case FilterType.rotateFilter:
|
||||
builder = (BuildContext context, Widget? child) => ImageFiltered(
|
||||
imageFilter: ImageFilter.matrix((
|
||||
@@ -134,7 +132,6 @@ class _FilteredChildAnimationPageState extends State<FilteredChildAnimationPage>
|
||||
).storage),
|
||||
child: child,
|
||||
);
|
||||
break;
|
||||
}
|
||||
return RepaintBoundary(
|
||||
child: AnimatedBuilder(
|
||||
|
||||
@@ -22,14 +22,12 @@ Future<void> main() async {
|
||||
await Future<void>.delayed(const Duration(seconds: 20));
|
||||
});
|
||||
}
|
||||
break;
|
||||
case 'TargetPlatform.android':
|
||||
{
|
||||
// Just run for 20 seconds to collect memory usage. The widget itself
|
||||
// animates during this time.
|
||||
await Future<void>.delayed(const Duration(seconds: 20));
|
||||
}
|
||||
break;
|
||||
default:
|
||||
throw UnsupportedError('Unsupported platform $targetPlatform');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user