removed expanded widget wrapping overlay stack that caused crash in release mode

This commit is contained in:
ggurdin 2024-09-03 11:22:17 -04:00
parent 5e145837d2
commit 660c49873b
No known key found for this signature in database
GPG key ID: A01CB41737CBB478

View file

@ -197,46 +197,44 @@ class MessageSelectionOverlayState extends State<MessageSelectionOverlay> {
FluffyThemes.isThreeColumnMode(context) &&
widget.controller.room.membership == Membership.join;
return Expanded(
child: Stack(
children: [
AnimatedPositioned(
duration: FluffyThemes.animationDuration,
left: 0,
right: showDetails ? FluffyThemes.columnWidth : 0,
bottom: adjustedOverlayBottomOffset == -1
? overlayBottomOffset
: adjustedOverlayBottomOffset,
child: Align(
alignment: Alignment.center,
child: overlayMessage,
),
return Stack(
children: [
AnimatedPositioned(
duration: FluffyThemes.animationDuration,
left: 0,
right: showDetails ? FluffyThemes.columnWidth : 0,
bottom: adjustedOverlayBottomOffset == -1
? overlayBottomOffset
: adjustedOverlayBottomOffset,
child: Align(
alignment: Alignment.center,
child: overlayMessage,
),
Align(
alignment: Alignment.bottomCenter,
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
Expanded(
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
OverlayFooter(controller: widget.controller),
],
),
),
Align(
alignment: Alignment.bottomCenter,
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
Expanded(
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
OverlayFooter(controller: widget.controller),
],
),
if (showDetails)
const SizedBox(
width: FluffyThemes.columnWidth,
),
],
),
),
if (showDetails)
const SizedBox(
width: FluffyThemes.columnWidth,
),
],
),
Material(
child: OverlayHeader(controller: widget.controller),
),
],
),
),
Material(
child: OverlayHeader(controller: widget.controller),
),
],
);
}
}