Fix context menu web examples (#120104)
The context menu examples on the docs site now work on the web.
This commit is contained in:
committed by
GitHub
parent
ec524ed068
commit
575ced6c5a
@@ -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({
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user