Skip to content
pubscout

cupertino_context_menu_plus

2.0.0, released 3 weeks ago by esentis.dev

Enhanced CupertinoContextMenu with custom top/bottom widgets, programmatic control, and styling options.

WASM-readyUses material_ui
$ flutter pub add cupertino_context_menu_plus
Source repository

What it does

Provides a Cupertino-style context menu that supports custom widgets above and below the preview, programmatic opening/closing, and extensive styling of the backdrop and actions sheet. It replaces the default Flutter CupertinoContextMenu with additional flexibility.

AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • Need a context menu with custom actions or UI beyond the default list
  • Require programmatic control to open the menu from a button or gesture
  • Want to customize backdrop blur, barrier color, or disable the grow animation
  • Need consistent alignment in chat bubbles or other UI layouts

Skip it when

  • Using older Flutter (<3.44) or still relying on package:flutter/cupertino.dart
  • Project already uses cupertino_ui but cannot upgrade to Dart 3.12+

Strengths

  • Highly customizable UI elements (topWidget, bottomWidgetBuilder)
  • Programmatic open/close via controller
  • Stable transition without white flash
  • Supports custom backdrop blur and barrier color

Weaknesses

  • Requires cupertino_ui dependency and Dart 3.12+
  • Breaking change in 2.0.0 may affect existing codebases
  • No direct alternative in pub.dev list

Setup

Kind
Flutter widgets
Effort
Medium
Code generation
No
Direct dependencies
1

Add cupertino_ui to pubspec, run `dart fix --apply --code=migrate_design_widgets` if migrating from flutter/cupertino.dart

final controller = CupertinoContextMenuPlusController();
CupertinoContextMenuPlus(
  controller: controller,
  topWidget: YourReactionsRow(),
  bottomWidgetBuilder: (context) => ClipRRect(
    borderRadius: BorderRadius.circular(16),
    child: ColoredBox(
      color: CupertinoColors.white,
      child: Column(
        mainAxisSize: MainAxisSize.min,
        children: [
          CupertinoContextMenuAction(
            child: const Text('Reply'),
            onPressed: () {},
          ),
        ],
      ),
    ),
  ),
  child: Container(
    padding: const EdgeInsets.all(12),
    child: const Text('Message'),
  ),
)

Alternatives

Packages that do the same job and could replace cupertino_context_menu_plus.

  • super_context_menu

    Context menu widget supporting native menus on platforms and drag & drop transitions on mobile.

  • star_menu

    Contextual popup menus with different shapes, animations, and custom widget entries.

  • flutter_context_menu

    Create and display customizable context menus with hierarchical submenus in Flutter apps.

  • kf_drawer

    A customizable animated side drawer for Flutter with controller, gesture, RTL, and multi-platform support.

Works with

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