1
0
mirror of https://github.com/flutter/samples.git synced 2026-06-04 13:30:26 +00:00

Adjust desktop_photo_search's lint rules (#816)

This commit is contained in:
Brett Morgan
2021-06-08 07:48:14 +10:00
committed by GitHub
parent 7acef097f0
commit 9ad1fae51c
5 changed files with 14 additions and 10 deletions

View File

@@ -18,7 +18,8 @@ class PhotoDetails extends StatefulWidget {
const PhotoDetails({
required this.photo,
required this.onPhotoSave,
});
Key? key,
}) : super(key: key);
final Photo photo;
final PhotoDetailsPhotoSaveCallback onPhotoSave;

View File

@@ -7,7 +7,7 @@ import 'package:flutter/material.dart';
typedef PhotoSearchDialogCallback = void Function(String searchQuery);
class PhotoSearchDialog extends StatefulWidget {
const PhotoSearchDialog(this.callback);
const PhotoSearchDialog({required this.callback, Key? key}) : super(key: key);
final PhotoSearchDialogCallback callback;
@override
State<PhotoSearchDialog> createState() => _PhotoSearchDialogState();