From 4ac2197b119701938287465d712a2e9eaa0a7ae4 Mon Sep 17 00:00:00 2001 From: lColinDl Date: Fri, 14 Jun 2019 14:13:49 +0200 Subject: [PATCH] Fixed issue #12: Now calculating the correct first page before initial layout --- lib/transformer_page_view.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/transformer_page_view.dart b/lib/transformer_page_view.dart index f4bc33f..a533c10 100644 --- a/lib/transformer_page_view.dart +++ b/lib/transformer_page_view.dart @@ -146,7 +146,7 @@ class TransformerPageController extends PageController { double get realPage { double page; if (position.maxScrollExtent == null || position.minScrollExtent == null) { - page = 0.0; + page = initialPage.toDouble(); } else { page = super.page; }