1
0
mirror of https://github.com/flutter/samples.git synced 2026-06-08 15:28:30 +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

@@ -7,9 +7,9 @@ import 'platform_selector.dart';
class CustomButtonsPage extends StatelessWidget {
CustomButtonsPage({
Key? key,
super.key,
required this.onChangedPlatform,
}) : super(key: key);
});
static const String route = 'custom-buttons';
static const String title = 'Custom Buttons';
@@ -52,14 +52,14 @@ class CustomButtonsPage extends StatelessWidget {
maxLines: 4,
minLines: 2,
contextMenuBuilder:
(BuildContext context, EditableTextState editableTextState) {
(context, editableTextState) {
return AdaptiveTextSelectionToolbar(
anchors: editableTextState.contextMenuAnchors,
// Build the default buttons, but make them look custom.
// Note that in a real project you may want to build
// different buttons depending on the platform.
children: editableTextState.contextMenuButtonItems
.map((ContextMenuButtonItem buttonItem) {
.map((buttonItem) {
return CupertinoButton(
borderRadius: null,
color: const Color(0xffaaaa00),