Renamed Positioned constructor. (#5927)

Renames stretch constructor to fill for better consistency with
the rest of the framework.
This commit is contained in:
Dragoș Tiselice
2016-09-19 10:46:06 -07:00
committed by GitHub
parent 921287b412
commit eafe1c7a4e
5 changed files with 5 additions and 5 deletions

View File

@@ -38,7 +38,7 @@ class GridTile extends StatelessWidget {
return child;
final List<Widget> children = <Widget>[
new Positioned.stretch(
new Positioned.fill(
child: child
)
];

View File

@@ -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(

View File

@@ -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,