super_context_menu
0.9.1, released a year ago by nativeshell.dev
Context menu widget supporting native menus on platforms and drag & drop transitions on mobile.
What it does
Provides a single context menu widget that seamlessly transitions to native drag & drop on mobile platforms like Android and iOS. It uses native context menus on iOS, macOS, and Linux, and Flutter-based context menus on Android, Windows, and Web.
AI-written summary of version 0.9.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a cross-platform context menu that utilizes native menus on iOS, macOS, and Linux.
- You want context menus that can transition into native drag and drop actions on mobile.
Skip it when
- You want to avoid native dependencies like Rust or precompiled platform binaries.
- Your application does not require context menus or drag and drop interactions.
Strengths
- Supports native context menus on iOS, macOS, and Linux.
- Provides seamless transition to drag and drop on mobile devices.
- Advanced features like custom lift images, deferred menu items, and lazy loading.
Weaknesses
- Uses Rust internally, which requires downloading precompiled binaries or setting up rustup.
- First build might take longer due to Rust target and NDK dependency compilation.
Setup
- Kind
- Flutter widgets
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 4
Uses Rust internally. Automatically downloads precompiled binaries or builds from source if rustup is detected.
ContextMenuWidget(
child: const Item(
child: Text('Base Context Menu'),
),
menuProvider: (_) {
return Menu(
children: [
MenuAction(title: 'Menu Item 2', callback: () {}),
MenuAction(title: 'Menu Item 3', callback: () {}),
],
);
},
)Alternatives
Packages that do the same job and could replace super_context_menu.
- kalender
A customizable calendar widget with day, multi-day, month, and schedule views.
92Compare - flutter_reorderable_grid_view
Animated GridViews and Wraps with drag-and-drop reordering and item animations.
91Compare - tab_overview
Tab switcher with live thumbnails in a grid, zoom transitions, and drag-and-drop reordering.
73Compare - base_menu
Composable primitives for building accessible menu systems.
70Compare
Works with
Packages commonly used together with super_context_menu: ones it builds on, ones built on it, and its own family.
- device_info_plussuper_context_menu depends on itProvides detailed information about the current device, make, model, and OS version.
- pixel_snapsuper_context_menu depends on itSharp looking Flutter applications at any pixel scaling factor.
- super_native_extensionssuper_context_menu depends on itLow level interface for native APIs such as clipboard and Drag and Drop
- super_clipboardSame familyComprehensive clipboard access package supporting rich text, images, and custom data formats.
- super_drag_and_dropSame familyNative drag and drop for Flutter across desktop, mobile and web.
- super_keyboard_layoutSame familyKeyboard layout mapping and layout change notifications for Flutter applications.
- super_hot_keySame familyRegister global system-wide hot keys on macOS and Windows.