AdaptivePopupRoute<T> constructor
AdaptivePopupRoute<T> ({})
AdaptivePopupRoute
use to show/hide popup route in an adaptive way
Example:
Navigator.of(context).push(
AdaptivePopupRoute(
builder: (_) => build,
settings: null,
top: position.top,
right: position.right,
bottom: position.bottom,
left: position.left,
contentHeight: dropDownHeight,
contentWidth: dropDownWidth,
),
);
Implementation
AdaptivePopupRoute({
required this.builder,
RouteSettings? settings,
this.contentWidth,
this.contentHeight,
this.barrierColor = Colors.transparent,
this.barrierDismissible = true,
this.duration = const Duration(milliseconds: 100),
this.top,
this.bottom,
this.left,
this.right,
}) : super(settings: settings);