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> {
// 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
// background (text and icons) will just be clipped, not resized.
Widget background = new Positioned.stretch(
Widget background = new Positioned.fill(
child: new Container(
margin: const EdgeInsets.all(4.0),
child: new Viewport(
......
......@@ -61,7 +61,7 @@ class TravelDestinationItem extends StatelessWidget {
height: 184.0,
child: new Stack(
children: <Widget>[
new Positioned.stretch(
new Positioned.fill(
child: new Image.asset(
destination.assetName,
fit: ImageFit.cover
......
......@@ -38,7 +38,7 @@ class GridTile extends StatelessWidget {
return child;
final List<Widget> children = <Widget>[
new Positioned.stretch(
new Positioned.fill(
child: child
)
];
......
......@@ -265,7 +265,7 @@ class _TooltipOverlay extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new Positioned.stretch(
return new Positioned.fill(
child: new IgnorePointer(
child: new CustomSingleChildLayout(
delegate: new _TooltipPositionDelegate(
......
......@@ -1519,7 +1519,7 @@ class Positioned extends ParentDataWidget<Stack> {
/// Creates a Positioned object with [left], [top], [right], and [bottom] set
/// to 0.0 unless a value for them is passed.
Positioned.stretch({
Positioned.fill({
Key key,
Widget child,
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