Repository navigation
[rfw] Add Flexible widget support to core widgets #173313
Copy link
Copy link
Closed
flutter/packages
#9750Labels
⏳Bot is counting down the days until it unassigns the issueBot is counting down the days until it unassigns the issuec: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: new widgetMust also have "c: new feature". Request for a new widget.Must also have "c: new feature". Request for a new widget.c: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterp: rfwRemote Flutter Widgets packageRemote Flutter Widgets packagepackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.r: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-ecosystemOwned by Ecosystem teamOwned by Ecosystem team
Description
Use case
When building dynamic layouts through RFW, developers need the ability to create flexible layouts with fine-grained control over how space is distributed among children in a Row or Column. Currently, RFW only supports:
Expanded: Always takes all available space (FlexFit.tight)- No option for FlexFit.loose behavior
Real-world scenarios where Flexible is needed:
- Creating layouts where widgets should only take the space they need (loose fit)
- Building responsive designs that adapt to content size
- Implementing complex flex layouts that mix tight and loose fitting widgets
Current Limitation
// Currently impossible in RFW - only Expanded is available
Column(
children: [
Flexible( // ❌ Not supported
fit: "loose",
child: Text(text: "Only takes needed space")
),
Expanded( // ✅ Supported
child: Text(text: "Takes all remaining space")
),
],
)
Proposal
Add Flexible widget support to RFW's core widgets library with the following API:
flex: int (default: 1) - The flex factorfit: FlexFit enum ("loose" | "tight", default: "loose") - How the child fills available spacechild: Widget (required) - The widget below this in the tree
This matches Flutter's native Flexible widget API exactly, ensuring consistency and predictability for developers.
flutter/packages#9750 provides a complete implementation with tests.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
⏳Bot is counting down the days until it unassigns the issueBot is counting down the days until it unassigns the issuec: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: new widgetMust also have "c: new feature". Request for a new widget.Must also have "c: new feature". Request for a new widget.c: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterp: rfwRemote Flutter Widgets packageRemote Flutter Widgets packagepackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.r: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-ecosystemOwned by Ecosystem teamOwned by Ecosystem team
Activity
tirth-patel-nc commentedon Aug 6, 2025
thanks for the detailed report and potential fix. labelling it as a new proposal.
flutter-triage-bot commentedon Dec 10, 2025
This issue is assigned to @BottlePumpkin but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks!
[rfw] Add Flexible widget support to core widgets (#9750)
github-actions commentedon Dec 24, 2025
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.