Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 1, 2025

Bumps flutter_context_menu from 0.3.0 to 0.4.1.

Changelog

Sourced from flutter_context_menu's changelog.

v0.4.1

Fixed

  • Hover Behavior: Fixed hover state management in menu items to prevent items from remaining highlighted after mouse exit (Fixes #45)
  • Submenu Interaction: Disabled submenus no longer open on hover when they are disabled (Fixes #44)

Improved

  • Code Organization:
    • Moved BuildContextExtensions to dedicated build_context_ext.dart
    • Moved SingleActivatorExtensions to single_activator_ext.dart
    • Improved overall code modularity and maintainability

Refactoring

  • Reordered items parameter in MenuItem.submenu constructor for better code organization
  • Updated all relevant imports to match the new file structure

v0.4.0

Added

  • Support for keyboard shortcuts and trailing widgets in MenuItem, enabling richer and more flexible menu actions. (closes #33)
  • Added SingleActivatorExtensions for human-readable shortcut strings (e.g., "Ctrl+O").
  • Added a new onItemSelected callback to ContextMenuRegion and showContextMenu for immediate selection handling.

Changed

  • Renamed enableGesturesenableDefaultGestures for clarity.
  • Renamed MenuItem.colortextColor for clearer meaning.
  • Updated default spawnAnchor for menus and submenus to improve positioning.
  • Refactored icon parameter on MenuItem from IconData? to Widget? to increase flexibility.
  • Refactored label parameter on MenuItem from String to Widget to increase flexibility.
  • Updated example project to showcase new features.

Improved

  • Full generics upgrade: ContextMenu<T>, ContextMenuItem<T>, ContextMenuEntry<T>, and all related classes are now strongly typed.
  • ContextMenu.copyWith now correctly returns ContextMenu<T>.
  • Submenus now use List<ContextMenuEntry<T>> for strong typing.
  • ContextMenuItem.onSelected now exposes the selected value (ValueChanged<T?>).
  • General API consistency improved across widgets and utilities.
  • Significantly improved debugging output:

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [flutter_context_menu](https://github.com/salah-rashad/flutter_context_menu) from 0.3.0 to 0.4.1.
- [Changelog](https://github.com/salah-rashad/flutter_context_menu/blob/main/CHANGELOG.md)
- [Commits](https://github.com/salah-rashad/flutter_context_menu/commits)

---
updated-dependencies:
- dependency-name: flutter_context_menu
  dependency-version: 0.4.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dart Pull requests that update Dart code dependencies Pull requests that update a dependency file labels Dec 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dart Pull requests that update Dart code dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant