more UI-as-code (#35516)
This commit is contained in:
committed by
GitHub
parent
d03aecab58
commit
df4bf453ab
@@ -144,13 +144,9 @@ class AndroidSemanticsNode {
|
||||
}
|
||||
|
||||
/// Gets a list of [AndroidSemanticsActions] which are defined for the node.
|
||||
List<AndroidSemanticsAction> getActions() {
|
||||
final List<AndroidSemanticsAction> result = <AndroidSemanticsAction>[];
|
||||
for (int id in _values['actions']) {
|
||||
result.add(AndroidSemanticsAction.deserialize(id));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
List<AndroidSemanticsAction> getActions() => <AndroidSemanticsAction>[
|
||||
for (int id in _values['actions']) AndroidSemanticsAction.deserialize(id),
|
||||
];
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
|
||||
@@ -34,7 +34,7 @@ class _ExampleWidgetState extends State<ExampleWidget> {
|
||||
});
|
||||
},
|
||||
),
|
||||
_pressed ? GeneratedWidget() : const SizedBox(),
|
||||
if (_pressed) GeneratedWidget() else const SizedBox(),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
@@ -3,7 +3,7 @@ description: A test of Flutter integrating code generation.
|
||||
|
||||
environment:
|
||||
# The pub client defaults to an <2.0.0 sdk constraint which we need to explicitly overwrite.
|
||||
sdk: ">=2.0.0-dev.68.0 <3.0.0"
|
||||
sdk: ">=2.2.2 <3.0.0"
|
||||
|
||||
dependencies:
|
||||
flutter:
|
||||
|
||||
Reference in New Issue
Block a user