Merge pull request #918 from pangeachat/fix-padding

revent change to padding in message overlay
pull/1476/head
ggurdin 1 year ago committed by GitHub
commit 58664c0d52
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -550,13 +550,7 @@ class MessageOverlayController extends State<MessageSelectionOverlay>
messageOffset!.dy - messageOffset!.dy -
messageSize!.height - messageSize!.height -
belowMessageHeight, belowMessageHeight,
child: Padding( child: overlayMessage,
padding: EdgeInsets.only(
left: horizontalPadding,
right: horizontalPadding,
),
child: overlayMessage,
),
) )
: AnimatedBuilder( : AnimatedBuilder(
animation: _overlayPositionAnimation!, animation: _overlayPositionAnimation!,
@ -570,33 +564,39 @@ class MessageOverlayController extends State<MessageSelectionOverlay>
}, },
); );
return Stack( return Padding(
children: [ padding: EdgeInsets.only(
positionedOverlayMessage, left: horizontalPadding,
Align( right: horizontalPadding,
alignment: Alignment.bottomCenter, ),
child: Row( child: Stack(
mainAxisSize: MainAxisSize.min, children: [
children: [ positionedOverlayMessage,
Expanded( Align(
child: Column( alignment: Alignment.bottomCenter,
mainAxisSize: MainAxisSize.min, child: Row(
children: [ mainAxisSize: MainAxisSize.min,
OverlayFooter(controller: widget.chatController), children: [
], Expanded(
), child: Column(
), mainAxisSize: MainAxisSize.min,
if (showDetails) children: [
const SizedBox( OverlayFooter(controller: widget.chatController),
width: FluffyThemes.columnWidth, ],
),
), ),
], if (showDetails)
const SizedBox(
width: FluffyThemes.columnWidth,
),
],
),
), ),
), Material(
Material( child: OverlayHeader(controller: widget.chatController),
child: OverlayHeader(controller: widget.chatController), ),
), ],
], ),
); );
} }
} }

Loading…
Cancel
Save