Fix context menu web examples (#120104)

The context menu examples on the docs site now work on the web.
This commit is contained in:
Justin McCandless
2023-02-06 15:51:11 -08:00
committed by GitHub
parent ec524ed068
commit 575ced6c5a
12 changed files with 169 additions and 18 deletions

View File

@@ -18,6 +18,11 @@ import 'overlay.dart';
///
/// ** See code in examples/api/lib/material/context_menu/context_menu_controller.0.dart **
/// {@end-tool}
///
/// See also:
///
/// * [BrowserContextMenu], which allows the browser's context menu on web to
/// be disabled and Flutter-rendered context menus to appear.
class ContextMenuController {
/// Creates a context menu that can be shown with [show].
ContextMenuController({

View File

@@ -1773,6 +1773,8 @@ class EditableText extends StatefulWidget {
/// * [AdaptiveTextSelectionToolbar.getAdaptiveButtons], which builds the
/// button Widgets for the current platform given
/// [ContextMenuButtonItem]s.
/// * [BrowserContextMenu], which allows the browser's context menu on web
/// to be disabled and Flutter-rendered context menus to appear.
/// {@endtemplate}
///
/// If not provided, no context menu will be shown.