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) {
|
onTapUp: widget.onTapUp == null ? null : (TapUpDetails details) {
|
||||||
widget.onTapUp(TapUpDetails(
|
widget.onTapUp(TapUpDetails(
|
||||||
|
kind: details.kind,
|
||||||
globalPosition: fromViewport(details.globalPosition - getOffset(context), _transform),
|
globalPosition: fromViewport(details.globalPosition - getOffset(context), _transform),
|
||||||
));
|
));
|
||||||
},
|
},
|
||||||
|
@ -34,6 +34,7 @@ void main() {
|
|||||||
config = AutofillConfiguration(
|
config = AutofillConfiguration(
|
||||||
uniqueIdentifier: null,
|
uniqueIdentifier: null,
|
||||||
autofillHints: const <String>['test'],
|
autofillHints: const <String>['test'],
|
||||||
|
currentEditingValue: const TextEditingValue(),
|
||||||
);
|
);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
expect(e.toString(), contains('uniqueIdentifier != null'));
|
expect(e.toString(), contains('uniqueIdentifier != null'));
|
||||||
@ -45,6 +46,7 @@ void main() {
|
|||||||
config = AutofillConfiguration(
|
config = AutofillConfiguration(
|
||||||
uniqueIdentifier: 'id',
|
uniqueIdentifier: 'id',
|
||||||
autofillHints: null,
|
autofillHints: null,
|
||||||
|
currentEditingValue: const TextEditingValue(),
|
||||||
);
|
);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
expect(e.toString(), contains('autofillHints != null'));
|
expect(e.toString(), contains('autofillHints != null'));
|
||||||
@ -59,6 +61,7 @@ void main() {
|
|||||||
const AutofillConfiguration config = AutofillConfiguration(
|
const AutofillConfiguration config = AutofillConfiguration(
|
||||||
uniqueIdentifier: 'id',
|
uniqueIdentifier: 'id',
|
||||||
autofillHints: <String>[],
|
autofillHints: <String>[],
|
||||||
|
currentEditingValue: TextEditingValue(),
|
||||||
);
|
);
|
||||||
|
|
||||||
json = config.toJson();
|
json = config.toJson();
|
||||||
|
Loading…
Reference in New Issue
Block a user