Explorar o código

type '_AnimatedEvaluation<FractionalOffset>' is not a subtype of type 'Animation<Offset>'

Vojta Drabek %!s(int64=7) %!d(string=hai) anos
pai
achega
7909238d69
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      lib/main.dart

+ 3 - 3
lib/main.dart

@@ -57,9 +57,9 @@ class FromRightToLeft<T> extends MaterialPageRoute<T> {
         ),
         child: child,
       ),
-      position: new FractionalOffsetTween(
-        begin: const FractionalOffset(1.0, 0.0),
-        end: FractionalOffset.topLeft,
+      position: new Tween<Offset>(
+        begin: const Offset(1.0, 0.0),
+        end: Offset.zero,
       )
       .animate(
         new CurvedAnimation(