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

@@ -11,9 +11,9 @@ import 'platform_selector.dart';
class CascadingMenuPage extends StatelessWidget {
const CascadingMenuPage({
Key? key,
super.key,
required this.onChangedPlatform,
}) : super(key: key);
});
static const String route = 'cascading';
static const String title = 'Cascading Menu Example';
@@ -80,8 +80,8 @@ class _MyContextMenuRegionState extends State<_MyContextMenuRegion> {
@override
Widget build(BuildContext context) {
return ContextMenuRegion(
contextMenuBuilder: (BuildContext context, Offset primaryAnchor,
[Offset? secondaryAnchor]) {
contextMenuBuilder: (context, primaryAnchor,
[secondaryAnchor]) {
return _MyCascadingContextMenu(
anchor: primaryAnchor,
showingMessage: _showMessage,
@@ -90,12 +90,12 @@ class _MyContextMenuRegionState extends State<_MyContextMenuRegion> {
_showMessage = !_showMessage;
});
},
onChangeBackgroundColor: (Color color) {
onChangeBackgroundColor: (color) {
setState(() {
_backgroundColor = color;
});
},
onChangeSelection: (String selection) {
onChangeSelection: (selection) {
setState(() {
_lastSelection = selection;
});