Skip to content

Commit 1412fcc

Browse files
committed
center align by the first item on the stack
1 parent bee92e0 commit 1412fcc

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

lib/vinyl/vinyl.dart

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,10 @@ class _TransformAppState extends State<TransformApp>
9292
AnimatedBuilder(
9393
animation: Listenable.merge([_headBowForwardAnimation]),
9494
builder: (context, child) {
95-
return Positioned(
96-
top: 0,
97-
bottom: 0,
98-
right: 0,
99-
left: 0,
100-
child: Center(
95+
return Align(
96+
alignment: Alignment.center,
97+
child: Padding(
98+
padding: EdgeInsets.only(right: 100),
10199
child: Transform(
102100
transform: Matrix4.identity()
103101
..setEntry(3, 2, 0.0003512553609721081)

0 commit comments

Comments
 (0)