diff --git a/lib/transformer_page_view.dart b/lib/transformer_page_view.dart index f4bc33f..8e6328e 100644 --- a/lib/transformer_page_view.dart +++ b/lib/transformer_page_view.dart @@ -204,6 +204,11 @@ class TransformerPageView extends StatefulWidget { /// Defaults to [Axis.horizontal]. final Axis scrollDirection; + /// Same as [PageView.clipBehavior] + /// + /// Defaults to [Clip.hardEdge]. + final Clip clipBehavior; + /// Same as [PageView.physics] final ScrollPhysics physics; @@ -267,6 +272,7 @@ class TransformerPageView extends StatefulWidget { this.transformer, this.itemBuilder, this.pageController, + this.clipBehavior, @required this.itemCount, }) : assert(itemCount != null), assert(itemCount == 0 || itemBuilder != null || transformer != null), @@ -283,6 +289,7 @@ class TransformerPageView extends StatefulWidget { bool loop: false, Axis scrollDirection = Axis.horizontal, ScrollPhysics physics, + Clip clipBehavior, bool pageSnapping = true, ValueChanged onPageChanged, IndexController controller, @@ -302,6 +309,7 @@ class TransformerPageView extends StatefulWidget { index: index, duration: duration, curve: curve, + clipBehavior: clipBehavior, viewportFraction: viewportFraction, scrollDirection: scrollDirection, physics: physics, @@ -419,6 +427,7 @@ class _TransformerPageViewState extends State { onPageChanged: _onIndexChanged, controller: _pageController, scrollDirection: widget.scrollDirection, + clipBehavior: widget.clipBehavior, physics: widget.physics, pageSnapping: widget.pageSnapping, reverse: _pageController.reverse,