1
0
mirror of https://github.com/flutter/samples.git synced 2026-06-06 14:29:10 +00:00

experimental/context_menus: Update analysis_options.yaml (#1579)

This commit is contained in:
Brett Morgan
2023-01-20 19:12:56 +11:00
committed by GitHub
parent e2a6ac66d3
commit c46d418532
25 changed files with 100 additions and 136 deletions

View File

@@ -6,9 +6,9 @@ import 'platform_selector.dart';
class GlobalSelectionPage extends StatelessWidget {
GlobalSelectionPage({
Key? key,
super.key,
required this.onChangedPlatform,
}) : super(key: key);
});
static const String route = 'global-selection';
static const String title = 'Global Selection Example';
@@ -25,7 +25,7 @@ class GlobalSelectionPage extends StatelessWidget {
Widget build(BuildContext context) {
return SelectionArea(
contextMenuBuilder:
(BuildContext context, SelectableRegionState selectableRegionState) {
(context, selectableRegionState) {
return AdaptiveTextSelectionToolbar.buttonItems(
anchors: selectableRegionState.contextMenuAnchors,
buttonItems: <ContextMenuButtonItem>[