Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
1fff1050
Unverified
Commit
1fff1050
authored
Jul 28, 2020
by
Pragya
Committed by
GitHub
Jul 28, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added expandedHeight in flexibleSpace and flexibleSpaceBar (#61710)
parent
e8e5de44
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
app_bar.dart
packages/flutter/lib/src/material/app_bar.dart
+3
-0
flexible_space_bar.dart
packages/flutter/lib/src/material/flexible_space_bar.dart
+5
-2
No files found.
packages/flutter/lib/src/material/app_bar.dart
View file @
1fff1050
...
@@ -1123,6 +1123,9 @@ class SliverAppBar extends StatefulWidget {
...
@@ -1123,6 +1123,9 @@ class SliverAppBar extends StatefulWidget {
/// This widget is stacked behind the toolbar and the tab bar. It's height will
/// This widget is stacked behind the toolbar and the tab bar. It's height will
/// be the same as the app bar's overall height.
/// be the same as the app bar's overall height.
///
///
/// When using [SliverAppBar.flexibleSpace], the [SliverAppBar.expandedHeight]
/// must be large enough to accommodate the [SliverAppBar.flexibleSpace] widget.
///
/// Typically a [FlexibleSpaceBar]. See [FlexibleSpaceBar] for details.
/// Typically a [FlexibleSpaceBar]. See [FlexibleSpaceBar] for details.
final
Widget
flexibleSpace
;
final
Widget
flexibleSpace
;
...
...
packages/flutter/lib/src/material/flexible_space_bar.dart
View file @
1fff1050
...
@@ -41,10 +41,13 @@ enum StretchMode {
...
@@ -41,10 +41,13 @@ enum StretchMode {
/// The part of a material design [AppBar] that expands, collapses, and
/// The part of a material design [AppBar] that expands, collapses, and
/// stretches.
/// stretches.
///
///
/// Most commonly used in
in
the [SliverAppBar.flexibleSpace] field, a flexible
/// Most commonly used in the [SliverAppBar.flexibleSpace] field, a flexible
/// space bar expands and contracts as the app scrolls so that the [AppBar]
/// space bar expands and contracts as the app scrolls so that the [AppBar]
/// reaches from the top of the app to the top of the scrolling contents of the
/// reaches from the top of the app to the top of the scrolling contents of the
/// app. Furthermore is included functionality for stretch behavior. When
/// app. When using [SliverAppBar.flexibleSpace], the [SliverAppBar.expandedHeight]
/// must be large enough to accommodate the [SliverAppBar.flexibleSpace] widget.
///
/// Furthermore is included functionality for stretch behavior. When
/// [SliverAppBar.stretch] is true, and your [ScrollPhysics] allow for
/// [SliverAppBar.stretch] is true, and your [ScrollPhysics] allow for
/// overscroll, this space will stretch with the overscroll.
/// overscroll, this space will stretch with the overscroll.
///
///
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment