-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: 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.team-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team
Description
Use case
Hello,
I'm loving the look of the CupertinoSheetRoute and its convenience method showCupertinoSheet however currently it seems that it isn't possible to customize the top gap which is restricting it's usage somewhat as a viable alternative to the material version showModalBottomSheet.
Currently it seems the top gap is hardcoded as: const double _kTopGapRatio = 0.08;
Proposal
I propose that this top gap valuable becomes an optional property, with the default value being kept as it is.
This could be implemented in the showCupertinoModalPopup via the following example:
await showCupertinoSheet(
context: context,
topGap: 2
pageBuilder: (BuildContext context) => Text("Example text")
);
erkinovalim and allanwolski
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: 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.team-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team