Added a stretch Positioned constructor. (#5894)

Fixes #5835.
This commit is contained in:
Dragoș Tiselice
2016-09-16 15:59:01 -07:00
committed by GitHub
parent 573eaf0b71
commit 51cd8b6799
5 changed files with 17 additions and 20 deletions

View File

@@ -61,11 +61,7 @@ class TravelDestinationItem extends StatelessWidget {
height: 184.0,
child: new Stack(
children: <Widget>[
new Positioned(
left: 0.0,
top: 0.0,
bottom: 0.0,
right: 0.0,
new Positioned.stretch(
child: new Image.asset(
destination.assetName,
fit: ImageFit.cover