pull_down_button library

Flutter widgets implementing the iOS Pull-Down menu.

To use, import package:pull_down_button/pull_down_button.dart

See also:

Classes

PullDownButton
Displays a pull-down menu and animates button to lower opacity when pressed.
PullDownButtonInheritedTheme
Alternative way of defining PullDownButtonTheme.
PullDownButtonTheme
Defines the visual properties of the routes used to display pull-down menus as well as any widgets that extend PullDownMenuEntry.
PullDownMenu
Displays a pull-down menu as a simple widget, with no animations or adding routes to navigation stack.
PullDownMenuActionsRow
Displays a number of actions in a more compact way (in a row, 3 or 4 items depending on desired size).
PullDownMenuDivider
A horizontal divider for cupertino style pull-down menu.
PullDownMenuDividerTheme
Defines the visual properties of the dividers in pull-down menus.
PullDownMenuEntry
Used to limit types of children passed to PullDownButton.itemBuilder.
PullDownMenuItem
An item in a cupertino style pull-down menu.
PullDownMenuItemTheme
Defines the visual properties of the items in pull-down menus.
PullDownMenuRouteTheme
Defines the visual properties of the routes used to display pull-down menus.
PullDownMenuTitle
The (optional) title of the pull-down menu that is usually displayed at the top of pull-down menu.
PullDownMenuTitleTheme
Defines the visual properties of the titles in pull-down menus.

Enums

PullDownMenuItemsOrder
Used to configure how the PullDownButton.itemBuilder orders it's items.
PullDownMenuPosition
Used to configure how the PullDownButton positions its pull-down menu and what type of movement (upwards or downwards) it will use for menu's appear animation.

Functions

showPullDownMenu({required BuildContext context, required List<PullDownMenuEntry> items, required RelativeRect position, required Widget? topWidget, Size buttonSize = Size.zero, PullDownMenuPosition menuPosition = PullDownMenuPosition.under, PullDownMenuItemsOrder itemsOrder = PullDownMenuItemsOrder.downwards, PullDownMenuCanceled? onCanceled, PullDownMenuRouteTheme? routeTheme}) Future<void>
Displays a pull-down menu with items at position.

Typedefs

PullDownMenuButtonBuilder = Widget Function(BuildContext context, Future<void> showMenu())
Signature used by PullDownButton to build button widget.
PullDownMenuCanceled = void Function()
Signature for the callback invoked when a PullDownButton is dismissed without selecting an item.
PullDownMenuItemBuilder = List<PullDownMenuEntry> Function(BuildContext context)
Signature used by PullDownButton to lazily construct the items shown when the button is pressed.
PullDownMenuItemTapHandler = void Function(BuildContext context, VoidCallback onTap)
Signature used by PullDownMenuItem to resolve how onTap callback is used.