Unverified Commit e4b989bf authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

math correctly (#20368)

parent e5432a28
...@@ -31,17 +31,17 @@ class _AccountPictures extends StatelessWidget { ...@@ -31,17 +31,17 @@ class _AccountPictures extends StatelessWidget {
end: 0.0, end: 0.0,
child: new Row( child: new Row(
children: (otherAccountsPictures ?? <Widget>[]).take(3).map((Widget picture) { children: (otherAccountsPictures ?? <Widget>[]).take(3).map((Widget picture) {
return new Container( return new Padding(
margin: const EdgeInsetsDirectional.only(start: 8.0), padding: const EdgeInsetsDirectional.only(start: 8.0),
width: 48.0,
height: 48.0,
child: new Semantics( child: new Semantics(
container: true, container: true,
child: new Padding( child: new Container(
padding: const EdgeInsets.only(left: 8.0, bottom: 8.0),
width: 48.0,
height: 48.0,
child: picture, child: picture,
padding: const EdgeInsets.all(4.0), ),
), )
),
); );
}).toList(), }).toList(),
), ),
......
...@@ -98,8 +98,8 @@ void main() { ...@@ -98,8 +98,8 @@ void main() {
expect(avatarATopLeft.dx - topLeft.dx, equals(16.0 + 10.0)); // left padding expect(avatarATopLeft.dx - topLeft.dx, equals(16.0 + 10.0)); // left padding
expect(avatarATopLeft.dy - topLeft.dy, equals(16.0 + 20.0)); // add top padding expect(avatarATopLeft.dy - topLeft.dy, equals(16.0 + 20.0)); // add top padding
expect(topRight.dx - avatarDTopRight.dx, equals(16.0 + 34.0)); // right padding expect(topRight.dx - avatarDTopRight.dx, equals(16.0 + 30.0)); // right padding
expect(avatarDTopRight.dy - topRight.dy, equals(16.0 + 24.0)); // add top padding expect(avatarDTopRight.dy - topRight.dy, equals(16.0 + 20.0)); // add top padding
expect(avatarDTopRight.dx - avatarCTopRight.dx, equals(40.0 + 16.0)); // size + space between expect(avatarDTopRight.dx - avatarCTopRight.dx, equals(40.0 + 16.0)); // size + space between
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment