Convert Align to use FractionalOffset instead of two doubles

It was confusing as to whether these were fractions or pixels.

Fixes #1622
This commit is contained in:
Adam Barth
2015-10-19 12:56:38 -07:00
parent 0ef9da85e1
commit 715b304ea2
6 changed files with 42 additions and 63 deletions

View File

@@ -348,8 +348,7 @@ class CardCollectionState extends State<CardCollection> {
if (_snapToCenter) {
Widget indicator = new IgnorePointer(
child: new Align(
horizontal: 0.0,
vertical: 0.5,
alignment: const FractionalOffset(0.0, 0.5),
child: new Container(
height: 1.0,
decoration: new BoxDecoration(backgroundColor: const Color(0x80FFFFFF))