-
Notifications
You must be signed in to change notification settings - Fork 29.1k
Open
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 capabilityd: api docsIssues with https://api.flutter.dev/Issues with https://api.flutter.dev/d: examplesSample code and demosSample code and demosd: stackoverflowGood question for Stack OverflowGood question for Stack Overflowf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.frameworkflutter/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
Because 'background' can only pass one fixed component and cannot display different component contents according to 'FlexibleSpaceBar' stretch, we need a way to build a 'background' according to the stretch state.
Proposal
add backgroundBuilder
, expose 'FlexibleSpacebarSettings' and' BoxConstraints' to users to build components more flexibly according to stretch state.
Widget (BuildContext context, FlexibleSpaceBarSettings settings, BoxConstraints constraints) backgroundBuilder
`Background 'and' backgroundBuilder' can't be used at the same time. Retaining 'background' ensures forward compatibility.
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 capabilityd: api docsIssues with https://api.flutter.dev/Issues with https://api.flutter.dev/d: examplesSample code and demosSample code and demosd: stackoverflowGood question for Stack OverflowGood question for Stack Overflowf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.frameworkflutter/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