Unverified Commit cfc2ae6e authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

Revert "disable new transition while toPictureSync is fixed" (#109327)

parent 2f4e9536
...@@ -602,7 +602,7 @@ class ZoomPageTransitionsBuilder extends PageTransitionsBuilder { ...@@ -602,7 +602,7 @@ class ZoomPageTransitionsBuilder extends PageTransitionsBuilder {
return _ZoomPageTransition( return _ZoomPageTransition(
animation: animation, animation: animation,
secondaryAnimation: secondaryAnimation, secondaryAnimation: secondaryAnimation,
preferRasterization: false, // TODO(jonahwilliams): https://github.com/flutter/flutter/issues/108389 preferRasterization: route?.preferRasterization ?? true,
child: child, child: child,
); );
} }
......
...@@ -174,7 +174,7 @@ void main() { ...@@ -174,7 +174,7 @@ void main() {
MaterialApp( MaterialApp(
onGenerateRoute: (RouteSettings settings) { onGenerateRoute: (RouteSettings settings) {
return MaterialPageRoute<void>( return MaterialPageRoute<void>(
// Defaults to false for _ZoomPageTransition due to https://github.com/flutter/flutter/issues/108389 preferRasterization: false,
builder: (BuildContext context) { builder: (BuildContext context) {
if (settings.name == '/') { if (settings.name == '/') {
return const Material(child: Text('Page 1')); return const Material(child: Text('Page 1'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment