-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
Labels
c: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterf: 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
I was not able to disable the CupertinoSegmentedControl in a case where i did not want the user to edit some data.
I could perhaps use the AbsorbPointer widget, but i still would like the style to change when it's disabled and not only disable input.
Proposal
I would like to either have an enabled option on CupertinoSegmentedControl, which when false it can't be pressed and it will be displayed as disabled, e.g. "grayed out".
Another option would perhaps to have it disabled when onValueChanged is null.
AleksandarSavic95, jdanbrown, absar, hrabkin, gagik and 4 more
Metadata
Metadata
Assignees
Labels
c: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterf: 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