mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Renamed Positioned constructor. (#5927)
Renames stretch constructor to fill for better consistency with the rest of the framework.
This commit is contained in:
parent
921287b412
commit
eafe1c7a4e
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user