mirror of
https://github.com/flutter/flutter
synced 2024-10-14 04:02:56 +00:00
Pesto: Prevent overscrolling on recipe page. (#5237)
BUG=https://github.com/flutter/flutter/issues/5098
This commit is contained in:
parent
4a8dbb0e13
commit
260cfcdb7b
|
@ -345,27 +345,30 @@ class _RecipePageState extends State<_RecipePage> {
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
new ScrollableViewport(
|
new ClampOverscrolls(
|
||||||
child: new RepaintBoundary(
|
value: true,
|
||||||
child: new Padding(
|
child: new ScrollableViewport(
|
||||||
padding: new EdgeInsets.only(top: appBarHeight),
|
child: new RepaintBoundary(
|
||||||
child: new Stack(
|
child: new Padding(
|
||||||
children: <Widget>[
|
padding: new EdgeInsets.only(top: appBarHeight),
|
||||||
new Padding(
|
child: new Stack(
|
||||||
padding: new EdgeInsets.only(top: fabHalfSize),
|
children: <Widget>[
|
||||||
child: new SizedBox(
|
new Padding(
|
||||||
width: fullWidth ? null : _kRecipePageMaxWidth,
|
padding: new EdgeInsets.only(top: fabHalfSize),
|
||||||
child: new _RecipeSheet(recipe: config.recipe)
|
child: new SizedBox(
|
||||||
|
width: fullWidth ? null : _kRecipePageMaxWidth,
|
||||||
|
child: new _RecipeSheet(recipe: config.recipe)
|
||||||
|
)
|
||||||
|
),
|
||||||
|
new Positioned(
|
||||||
|
right: 16.0,
|
||||||
|
child: new FloatingActionButton(
|
||||||
|
child: new Icon(isFavorite ? Icons.favorite : Icons.favorite_border),
|
||||||
|
onPressed: _toggleFavorite
|
||||||
|
)
|
||||||
)
|
)
|
||||||
),
|
]
|
||||||
new Positioned(
|
)
|
||||||
right: 16.0,
|
|
||||||
child: new FloatingActionButton(
|
|
||||||
child: new Icon(isFavorite ? Icons.favorite : Icons.favorite_border),
|
|
||||||
onPressed: _toggleFavorite
|
|
||||||
)
|
|
||||||
)
|
|
||||||
]
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue