layout_set_flex_factor
Set the flex factor of a flex child widget to adjust its proportional space within a flex layout.
Instructions
RPC: Set the flex factor of a flex child widget (ext.flutter.inspector.setFlexFactor)
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>",
"factor": "<factor>"
},
"name": "layout_set_flex_factor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Port number where the Flutter app is running (defaults to 8181) | |
| factor | Yes | Flex factor value to set (must be non-negative) | |
| objectId | Yes | ID of the flex child widget |