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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user