Skip to content

Commit

Permalink
openContextMenu constraint
Browse files Browse the repository at this point in the history
Change List type to BaseContextMenuEntry
  • Loading branch information
chesnoksatan committed Jul 9, 2022
1 parent f0a1109 commit 55259a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/widgets/context_menu/context_menu.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class ContextMenu extends StatelessWidget {
void openContextMenu(
BuildContext context,
Offset position,
List<PopupMenuEntry<dynamic>> entries,
List<BaseContextMenuEntry> entries,
) {
final menuTheme = Theme.of(context).extension<ContextMenuTheme>()!;

Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/context_menu/context_sub_menu_entry.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import 'package:flutter/material.dart';
class ContextSubMenuEntry extends BaseContextMenuEntry {
/// The [entries] are displayed in the order they are provided.
/// They can be [ContextMenuEntry], [ContextMenuDivider], [ContextSubMenuEntry] or any other widgets inherited from PopupMenuEntry.
final List<PopupMenuEntry> entries;
final List<BaseContextMenuEntry> entries;

const ContextSubMenuEntry({
required String id,
Expand Down

0 comments on commit 55259a6

Please sign in to comment.