Skip to content
pubscout

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.

Quiet but busy
$ flutter pub add super_context_menu
Source repository

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.

Works with

Packages commonly used together with super_context_menu: ones it builds on, ones built on it, and its own family.