fix: overflow in cute events

Signed-off-by: The one with the braid <the-one@with-the-braid.cf>
This commit is contained in:
The one with the braid 2023-06-21 15:55:23 +02:00
parent a3f3888a6f
commit 3956b7a754

View file

@ -36,8 +36,6 @@ class _CuteContentState extends State<CuteContent> {
return GestureDetector(
onTap: addOverlay,
child: SizedBox.square(
dimension: 300,
child: Column(
mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.center,
@ -49,7 +47,6 @@ class _CuteContentState extends State<CuteContent> {
if (label != null) Text(label)
],
),
),
);
},
);
@ -144,6 +141,7 @@ class _CuteEventOverlayState extends State<CuteEventOverlay>
return SizedBox(
height: constraints.maxHeight,
width: constraints.maxWidth,
child: OverflowBox(
child: Stack(
alignment: Alignment.bottomLeft,
fit: StackFit.expand,
@ -163,6 +161,7 @@ class _CuteEventOverlayState extends State<CuteEventOverlay>
)
.toList(),
),
),
);
},
),