aligned_dialog library

Classes

AlignedDialogRoute<T>

Functions

showAlignedDialog<T>({required BuildContext context, required WidgetBuilder builder, bool barrierDismissible = true, Color? barrierColor = Colors.black54, String? barrierLabel, bool useRootNavigator = true, RouteSettings? routeSettings, Alignment followerAnchor = Alignment.center, Alignment targetAnchor = Alignment.center, Offset offset = Offset.zero, bool avoidOverflow = false, bool isGlobal = false, RouteTransitionsBuilder? transitionsBuilder, Duration? duration}) Future<T?>
show a dialog that is aligned to the widget(context) that opens it. The followerAnchor and targetAnchor tells how the dialog and the original widget should be aligned, similar to the CompositedTransformFollower widget.
showGlobalDrawer<T>({required BuildContext context, required WidgetBuilder builder, bool barrierDismissible = true, Color? barrierColor = Colors.black54, String? barrierLabel, bool useRootNavigator = true, RouteSettings? routeSettings, AxisDirection direction = AxisDirection.left, Duration? duration}) Future<T?>
show a dialog/drawer that is aligned to one of the edges of the screen, specified by the direction.