Skip to content

Commit

Permalink
disable new transition while toPictureSync is fixed (#108565)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahwilliams authored Jul 28, 2022
1 parent 058d272 commit 6cb2f5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ class ZoomPageTransitionsBuilder extends PageTransitionsBuilder {
return _ZoomPageTransition(
animation: animation,
secondaryAnimation: secondaryAnimation,
preferRasterization: route?.preferRasterization ?? true,
preferRasterization: false, // TODO(jonahwilliams): https://github.com/flutter/flutter/issues/108389
child: child,
);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/flutter/test/material/page_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ void main() {
MaterialApp(
onGenerateRoute: (RouteSettings settings) {
return MaterialPageRoute<void>(
preferRasterization: false,
// Defaults to false for _ZoomPageTransition due to https://github.com/flutter/flutter/issues/108389
builder: (BuildContext context) {
if (settings.name == '/') {
return const Material(child: Text('Page 1'));
Expand Down

0 comments on commit 6cb2f5d

Please sign in to comment.