layout_set_flex_fit
Adjust the flex fit property of a selected flex child widget to control whether it expands to fill available space (tight) or respects its intrinsic size (loose).
Instructions
RPC: Set the flex fit property of a flex child widget (ext.flutter.inspector.setFlexFit)
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>",
"fit": "<fit>"
},
"name": "layout_set_flex_fit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fit | Yes | Flex fit value to set (tight or loose) | |
| port | No | Port number where the Flutter app is running (defaults to 8181) | |
| objectId | Yes | ID of the flex child widget |