From eafe1c7a4e737db58db81b295435237db77a640b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Drago=C8=99=20Tiselice?= Date: Mon, 19 Sep 2016 10:46:06 -0700 Subject: [PATCH] Renamed Positioned constructor. (#5927) Renames stretch constructor to fill for better consistency with the rest of the framework. --- dev/manual_tests/card_collection.dart | 2 +- examples/flutter_gallery/lib/demo/cards_demo.dart | 2 +- packages/flutter/lib/src/material/grid_tile.dart | 2 +- packages/flutter/lib/src/material/tooltip.dart | 2 +- packages/flutter/lib/src/widgets/basic.dart | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dev/manual_tests/card_collection.dart b/dev/manual_tests/card_collection.dart index 25e0e40db2e..b8653782a4b 100644 --- a/dev/manual_tests/card_collection.dart +++ b/dev/manual_tests/card_collection.dart @@ -363,7 +363,7 @@ class CardCollectionState extends State { // 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( diff --git a/examples/flutter_gallery/lib/demo/cards_demo.dart b/examples/flutter_gallery/lib/demo/cards_demo.dart index 41a28faaa80..bf0bcfe79a4 100644 --- a/examples/flutter_gallery/lib/demo/cards_demo.dart +++ b/examples/flutter_gallery/lib/demo/cards_demo.dart @@ -61,7 +61,7 @@ class TravelDestinationItem extends StatelessWidget { height: 184.0, child: new Stack( children: [ - new Positioned.stretch( + new Positioned.fill( child: new Image.asset( destination.assetName, fit: ImageFit.cover diff --git a/packages/flutter/lib/src/material/grid_tile.dart b/packages/flutter/lib/src/material/grid_tile.dart index cbbb1e9f99a..4f0413f7b5e 100644 --- a/packages/flutter/lib/src/material/grid_tile.dart +++ b/packages/flutter/lib/src/material/grid_tile.dart @@ -38,7 +38,7 @@ class GridTile extends StatelessWidget { return child; final List children = [ - new Positioned.stretch( + new Positioned.fill( child: child ) ]; diff --git a/packages/flutter/lib/src/material/tooltip.dart b/packages/flutter/lib/src/material/tooltip.dart index 8cea2080354..65be39c2d2b 100644 --- a/packages/flutter/lib/src/material/tooltip.dart +++ b/packages/flutter/lib/src/material/tooltip.dart @@ -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( diff --git a/packages/flutter/lib/src/widgets/basic.dart b/packages/flutter/lib/src/widgets/basic.dart index 62ba487bb3d..46eaaaf910e 100644 --- a/packages/flutter/lib/src/widgets/basic.dart +++ b/packages/flutter/lib/src/widgets/basic.dart @@ -1519,7 +1519,7 @@ class Positioned extends ParentDataWidget { /// 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,