disable new transition while toPictureSync is fixed (#108565)
This commit is contained in:
@@ -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,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user