layout_set_flex_properties
Adjust flex properties of a widget, including flex factor and fit type, to control layout behavior in a Flutter app.
Instructions
RPC: Set multiple flex properties of a flex child widget (ext.flutter.inspector.setFlexProperties)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"objectId": "<objectId>",
"properties": "<properties>"
},
"name": "layout_set_flex_properties"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Port number where the Flutter app is running (defaults to 8181) | |
| objectId | Yes | ID of the flex child widget | |
| properties | Yes | Flex properties to set |