component/input/popup_menu
library
Classes
-
A subtle GhostButton that unveils a dropdown menu, optimized for ghosted input controls
like optional enhancers in IconButton or MutableText setups, where minimal visual impact is desired;
based on GhostButton, it adapts onPressed to invoke showDropdown for DropdownMenu with MenuItems,
facilitating lightweight menu interactions in Tooltip or Popover-augmented UIs.
-
A compact IconButton wrapper that triggers a dropdown menu for item selection when tapped,
ideal for space-constrained input interfaces requiring quick access to options like sorting or filtering.
This widget combines IconButton with GestureDetector for robust tap handling and displays a DropdownMenu
populated with MenuItems using showDropdown, integrating seamlessly with other input components
such as MutableText for dynamic labels or CycleButton for related controls in forms.
-
An OutlineButton variant that opens a dropdown menu on activation,
suitable for secondary actions in input forms where a bordered button provides clear menu access,
such as selecting input modes or validation rules; it extends OutlineButton functionality
while overriding the press handler to display a DropdownMenu with MenuItems via showDropdown,
and integrates with
FieldWrapper
or ArcaneField for contextual menus in form inputs.
-
A primary PrimaryButton enhanced with menu capabilities for key input decisions,
such as confirming selections in RadioCards or initiating actions in Fab-linked flows;
it utilizes PrimaryButton styling and gestures, redirecting presses to showDropdown for DropdownMenu
with MenuItems, ensuring prominent menu access while maintaining ArcaneTheme consistency.
-
A secondary-style SecondaryButton that launches a menu for user choices,
designed for less prominent input actions like toggling visibility or mode selection in Selector or
Search
components;
leverages SecondaryButton base with DropdownMenu integration via showDropdown for MenuItem handling,
supporting null safety in optional params and forwarding to ArcaneTheme for consistent styling.
-
A TextButton extension that reveals a dropdown menu upon pressing,
perfect for subtle input actions like option selection in text-heavy interfaces or MutableText-integrated forms;
it builds on TextButton with menu support, using showDropdown to present DropdownMenu items,
and supports integration with Popover or Tooltip for enhanced user guidance in complex inputs.