mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Add arguments for required parameters. (#63598)
This commit is contained in:
parent
0a7c6243fa
commit
bd1a58a991
@ -226,6 +226,7 @@ class _GestureTransformableState extends State<GestureTransformable> with Ticker
|
||||
},
|
||||
onTapUp: widget.onTapUp == null ? null : (TapUpDetails details) {
|
||||
widget.onTapUp(TapUpDetails(
|
||||
kind: details.kind,
|
||||
globalPosition: fromViewport(details.globalPosition - getOffset(context), _transform),
|
||||
));
|
||||
},
|
||||
|
@ -34,6 +34,7 @@ void main() {
|
||||
config = AutofillConfiguration(
|
||||
uniqueIdentifier: null,
|
||||
autofillHints: const <String>['test'],
|
||||
currentEditingValue: const TextEditingValue(),
|
||||
);
|
||||
} catch (e) {
|
||||
expect(e.toString(), contains('uniqueIdentifier != null'));
|
||||
@ -45,6 +46,7 @@ void main() {
|
||||
config = AutofillConfiguration(
|
||||
uniqueIdentifier: 'id',
|
||||
autofillHints: null,
|
||||
currentEditingValue: const TextEditingValue(),
|
||||
);
|
||||
} catch (e) {
|
||||
expect(e.toString(), contains('autofillHints != null'));
|
||||
@ -59,6 +61,7 @@ void main() {
|
||||
const AutofillConfiguration config = AutofillConfiguration(
|
||||
uniqueIdentifier: 'id',
|
||||
autofillHints: <String>[],
|
||||
currentEditingValue: TextEditingValue(),
|
||||
);
|
||||
|
||||
json = config.toJson();
|
||||
|
Loading…
Reference in New Issue
Block a user