fix scrollview

This commit is contained in:
Salvatore Giordano
2020-10-27 17:11:57 +01:00
parent e9572d48b9
commit d2801b2b13
3 changed files with 128 additions and 124 deletions
+6 -3
View File
@@ -48,8 +48,8 @@ class MessageActionsModal extends StatelessWidget {
onTap: () { onTap: () {
Navigator.pop(context); Navigator.pop(context);
}, },
child: Center(
child: SingleChildScrollView( child: SingleChildScrollView(
padding: const EdgeInsets.only(top: 160),
child: Stack( child: Stack(
children: [ children: [
Positioned.fill( Positioned.fill(
@@ -114,12 +114,14 @@ class MessageActionsModal extends StatelessWidget {
context: context, context: context,
tiles: [ tiles: [
if (showReply && if (showReply &&
(message.status == MessageSendingStatus.SENT || (message.status ==
MessageSendingStatus.SENT ||
message.status == null) && message.status == null) &&
message.parentId == null) message.parentId == null)
_buildReplyButton(context), _buildReplyButton(context),
if (showEditMessage) _buildEditMessage(context), if (showEditMessage) _buildEditMessage(context),
if (showDeleteMessage) _buildDeleteButton(context), if (showDeleteMessage)
_buildDeleteButton(context),
if (showCopyMessage) _buildCopyButton(context), if (showCopyMessage) _buildCopyButton(context),
], ],
).toList(), ).toList(),
@@ -132,6 +134,7 @@ class MessageActionsModal extends StatelessWidget {
], ],
), ),
), ),
),
); );
} }
+2 -1
View File
@@ -39,8 +39,8 @@ class MessageReactionsModal extends StatelessWidget {
onTap: () { onTap: () {
Navigator.pop(context); Navigator.pop(context);
}, },
child: Center(
child: SingleChildScrollView( child: SingleChildScrollView(
padding: const EdgeInsets.only(top: 160),
child: Stack( child: Stack(
children: [ children: [
Positioned.fill( Positioned.fill(
@@ -98,6 +98,7 @@ class MessageReactionsModal extends StatelessWidget {
], ],
), ),
), ),
),
); );
} }
+1 -1
View File
@@ -241,7 +241,7 @@ class _MessageWidgetState extends State<MessageWidget> {
Flexible( Flexible(
child: PortalEntry( child: PortalEntry(
portal: Container( portal: Container(
transform: Matrix4.translationValues(-16, 0, 0), transform: Matrix4.translationValues(-16, 2, 0),
child: _buildReactionIndicator(context), child: _buildReactionIndicator(context),
constraints: BoxConstraints(maxWidth: 22 * 6.0), constraints: BoxConstraints(maxWidth: 22 * 6.0),
), ),