1
0
mirror of https://github.com/flutter/samples.git synced 2026-06-01 03:50:57 +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 ImagePage extends StatelessWidget {
const ImagePage({
Key? key,
super.key,
required this.onChangedPlatform,
}) : super(key: key);
});
static const String route = 'image';
static const String title = 'ContextMenu on an Image';
@@ -22,7 +22,7 @@ class ImagePage extends StatelessWidget {
DialogRoute _showDialog(BuildContext context) {
return DialogRoute<void>(
context: context,
builder: (BuildContext context) =>
builder: (context) =>
const AlertDialog(title: Text('Image saved! (not really though)')),
);
}
@@ -50,7 +50,7 @@ class ImagePage extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
ContextMenuRegion(
contextMenuBuilder: (BuildContext context, Offset offset) {
contextMenuBuilder: (context, offset) {
return AdaptiveTextSelectionToolbar.buttonItems(
anchors: TextSelectionToolbarAnchors(
primaryAnchor: offset,