Commit eafe1c7a authored by Dragoș Tiselice's avatar Dragoș Tiselice Committed by GitHub

Renamed Positioned constructor. (#5927)

Renames stretch constructor to fill for better consistency with
the rest of the framework.
parent 921287b4
...@@ -363,7 +363,7 @@ class CardCollectionState extends State<CardCollection> { ...@@ -363,7 +363,7 @@ class CardCollectionState extends State<CardCollection> {
// size of the background,card Stack will be based only on the card. The // size of the background,card Stack will be based only on the card. The
// Viewport ensures that when the card's resize animation occurs, the // Viewport ensures that when the card's resize animation occurs, the
// background (text and icons) will just be clipped, not resized. // background (text and icons) will just be clipped, not resized.
Widget background = new Positioned.stretch( Widget background = new Positioned.fill(
child: new Container( child: new Container(
margin: const EdgeInsets.all(4.0), margin: const EdgeInsets.all(4.0),
child: new Viewport( child: new Viewport(
......
...@@ -61,7 +61,7 @@ class TravelDestinationItem extends StatelessWidget { ...@@ -61,7 +61,7 @@ class TravelDestinationItem extends StatelessWidget {
height: 184.0, height: 184.0,
child: new Stack( child: new Stack(
children: <Widget>[ children: <Widget>[
new Positioned.stretch( new Positioned.fill(
child: new Image.asset( child: new Image.asset(
destination.assetName, destination.assetName,
fit: ImageFit.cover fit: ImageFit.cover
......
...@@ -38,7 +38,7 @@ class GridTile extends StatelessWidget { ...@@ -38,7 +38,7 @@ class GridTile extends StatelessWidget {
return child; return child;
final List<Widget> children = <Widget>[ final List<Widget> children = <Widget>[
new Positioned.stretch( new Positioned.fill(
child: child child: child
) )
]; ];
......
...@@ -265,7 +265,7 @@ class _TooltipOverlay extends StatelessWidget { ...@@ -265,7 +265,7 @@ class _TooltipOverlay extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return new Positioned.stretch( return new Positioned.fill(
child: new IgnorePointer( child: new IgnorePointer(
child: new CustomSingleChildLayout( child: new CustomSingleChildLayout(
delegate: new _TooltipPositionDelegate( delegate: new _TooltipPositionDelegate(
......
...@@ -1519,7 +1519,7 @@ class Positioned extends ParentDataWidget<Stack> { ...@@ -1519,7 +1519,7 @@ class Positioned extends ParentDataWidget<Stack> {
/// Creates a Positioned object with [left], [top], [right], and [bottom] set /// Creates a Positioned object with [left], [top], [right], and [bottom] set
/// to 0.0 unless a value for them is passed. /// to 0.0 unless a value for them is passed.
Positioned.stretch({ Positioned.fill({
Key key, Key key,
Widget child, Widget child,
this.left: 0.0, this.left: 0.0,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment