Package selection guidance compiled from public package information, community data, and project usage.
The menu_button package provides a customizable dropdown menu button widget for Flutter, enabling users to easily select an item from a list. It offers a clean and intuitive interface for presenting options in a compact form, ideal for forms or settings where space is limited. The widget supports customization of appearance, behavior, and animation, making it adaptable to various design needs. It integrates seamlessly with existing Flutter apps and enhances user interaction without requiring complex implementation.
Use cases
Form inputs with dropdown choices
Settings panels with option selection
Customizable navigation menus
Mobile-friendly dropdown interfaces
Simplified data entry workflows
Key features
Highly customizable appearance
Smooth transition animations
Easy integration with Flutter UI
Supports custom item builders
Accessible and responsive design
Suitable for
Developers building interactive forms
Designers seeking flexible dropdown components
Apps needing lightweight menu solutions
Projects prioritizing user experience
Teams using Flutter for cross-platform apps
Considerations
Limited platform-specific styling options
No built-in validation support
Requires manual handling of selection callbacks
Not optimized for very long lists
Depends on external dependencies for advanced features
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
menu_button
Flutter widget to display a popup menu button very simply and easily customizable.
Add menu_button: ^1.4.2+1 in your pubspec.yaml dependencies. And import it:
import'package:menu_button/menu_button.dart';
Usage
The widget has a lot of properties to customize it, we will see here the ones needed to get a "basic" menu button.
Firstly we have to declare a variable to keep the selected item (selectedKey) and a list that contains all the items we want to display in this menu button.
Here we will make a list of strings that we will call keys and that contains the values Low, Medium & High.