Renamed Positioned constructor. (#5927)
Renames stretch constructor to fill for better consistency with the rest of the framework.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user