@@ -1385,7 +1385,7 @@ class Navigator extends StatefulWidget {
13851385 /// Creates a widget that maintains a stack-based history of child widgets.
13861386 ///
13871387 /// The [onGenerateRoute] , [pages] , [onGenerateInitialRoutes] ,
1388- /// [transitionDelegate] , [observers] arguments must not be null.
1388+ /// [transitionDelegate] , [observers] arguments must not be null.
13891389 ///
13901390 /// If the [pages] is not empty, the [onPopPage] must not be null.
13911391 const Navigator ({
@@ -1398,6 +1398,7 @@ class Navigator extends StatefulWidget {
13981398 this .onUnknownRoute,
13991399 this .transitionDelegate = const DefaultTransitionDelegate <dynamic >(),
14001400 this .reportsRouteUpdateToEngine = false ,
1401+ this .clipBehavior = Clip .hardEdge,
14011402 this .observers = const < NavigatorObserver > [],
14021403 this .requestFocus = true ,
14031404 this .restorationScopeId,
@@ -1563,6 +1564,14 @@ class Navigator extends StatefulWidget {
15631564 /// Defaults to false.
15641565 final bool reportsRouteUpdateToEngine;
15651566
1567+ /// {@macro flutter.material.Material.clipBehavior}
1568+ ///
1569+ /// In cases where clipping is not desired, consider setting this property to
1570+ /// [Clip.none] .
1571+ ///
1572+ /// Defaults to [Clip.hardEdge] , and must not be null.
1573+ final Clip clipBehavior;
1574+
15661575 /// Whether or not the navigator and it's new topmost route should request focus
15671576 /// when the new route is pushed onto the navigator.
15681577 ///
@@ -5253,6 +5262,7 @@ class NavigatorState extends State<Navigator> with TickerProviderStateMixin, Res
52535262 bucket: bucket,
52545263 child: Overlay (
52555264 key: _overlayKey,
5265+ clipBehavior: widget.clipBehavior,
52565266 initialEntries: overlay == null ? _allRouteOverlayEntries.toList (growable: false ) : const < OverlayEntry > [],
52575267 ),
52585268 ),
0 commit comments