-
Notifications
You must be signed in to change notification settings - Fork 30.2k
Open
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecta: qualityA truly polished experienceA truly polished experiencec: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityf: focusFocus traversal, gaining or losing focusFocus traversal, gaining or losing focusf: scrollingViewports, list views, slivers, etc.Viewports, list views, slivers, etc.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework team
Description
Use case
Some applications would like to maintain extra padding when focusing items with directional or tab focus. Currently, Flutter aligns the top or bottom of the item with the top or bottom of the Scrollable it resides in. Adding additional padding allows applications that mainly depend on directional input to peek items in scrolling lists.
Proposal
- Add the ability to pass a padding to
Scrollable.ensureVisibleandScrollPosition.ensureVisible(breaking change) - Add a user-modifiable default padding to FocusManager (defaults to 0)
- Add a getter on FocusNode to get the padding for ensureVisible to support per-node paddings in the future
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecta: qualityA truly polished experienceA truly polished experiencec: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityf: focusFocus traversal, gaining or losing focusFocus traversal, gaining or losing focusf: scrollingViewports, list views, slivers, etc.Viewports, list views, slivers, etc.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework team