-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityf: cupertinoflutter/packages/flutter/cupertino repositoryflutter/packages/flutter/cupertino repositoryframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.r: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team
Description
Use case
A an animated "container" widget that can be expanded/collapsed similar to many native iOS apps.
Examples:
- iPadOS sidebar (Add a Sidebar widget to Cupertino for a native look on iPadOS #60762) (source: iOS 17 Music app)
Screen.Recording.2024-07-30.at.19.07.02.mov
-
"Show-on-load" list groups
-
Calendar/Time inline widget (Add new Cupertino calendar date picker mode #63693) (source: iOS 17 Calendar app)
RPReplay_Final1724341148.mov
- Collapsible groups (source: iOS 17 Mail app)
RPReplay_Final1724341108.mov
Proposal
I've already started working on it as a part of #60762 and I'm ready to open a PR to contribute this feature.
I suggest the name "collapsible" due to it being closer to native iOS SwiftUI nomenclature (https://developer.apple.com/documentation/swiftui/section/collapsible(_:))
The suggested API is very simple something along the lines of:
CupertinoCollapsibleContainer(
collapsed: true,
child: Text("Hello World!"),
),GroovinChip and ChrisZouhuycozy, MitchellGoodwin, victorsanni and GroovinChip
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityf: cupertinoflutter/packages/flutter/cupertino repositoryflutter/packages/flutter/cupertino repositoryframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.r: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team
Type
Projects
Status
Done