diff --git a/lib/flow_builder.dart b/lib/flow_builder.dart index 0daff83..5d9aeb6 100644 --- a/lib/flow_builder.dart +++ b/lib/flow_builder.dart @@ -48,6 +48,7 @@ class FlowBuilder extends StatefulWidget { this.onComplete, this.controller, this.observers = const [], + this.clipBehavior = Clip.hardEdge, }) : assert( state != null || controller != null, 'requires either state or controller', @@ -74,6 +75,12 @@ class FlowBuilder extends StatefulWidget { /// A list of [NavigatorObserver] for this [FlowBuilder]. final List observers; + /// In cases where clipping is not desired, consider setting this property to + /// [Clip.none]. + /// + /// Defaults to [Clip.hardEdge]. + final Clip clipBehavior; + @override State> createState() => _FlowBuilderState(); } @@ -179,6 +186,7 @@ class _FlowBuilderState extends State> { key: _navigatorKey, pages: _pages, observers: widget.observers, + clipBehavior: widget.clipBehavior, onPopPage: (route, dynamic result) { if (_history.length > 1) { _history.removeLast();