Merge branch 'feature/new-ui' into qa4-fixes
This commit is contained in:
@@ -218,12 +218,14 @@ class _ImageFooterState extends State<ImageFooter> {
|
||||
shrinkWrap: true,
|
||||
physics: NeverScrollableScrollPhysics(),
|
||||
itemBuilder: (context, position) {
|
||||
Widget media;
|
||||
|
||||
if (widget.mediaAttachments[position].type == 'video') {
|
||||
var controllerPackage = widget.videoPackages[
|
||||
videoAttachments
|
||||
.indexOf(widget.mediaAttachments[position])];
|
||||
|
||||
return InkWell(
|
||||
media = InkWell(
|
||||
onTap: () {
|
||||
widget.mediaSelectedCallBack(position);
|
||||
},
|
||||
@@ -235,7 +237,7 @@ class _ImageFooterState extends State<ImageFooter> {
|
||||
),
|
||||
);
|
||||
} else {
|
||||
return InkWell(
|
||||
media = InkWell(
|
||||
onTap: () {
|
||||
widget.mediaSelectedCallBack(position);
|
||||
},
|
||||
@@ -254,6 +256,28 @@ class _ImageFooterState extends State<ImageFooter> {
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
return Stack(
|
||||
children: [
|
||||
media,
|
||||
Padding(
|
||||
padding: EdgeInsets.all(8.0),
|
||||
child: Align(
|
||||
alignment: Alignment.topLeft,
|
||||
child: UserAvatar(
|
||||
user: widget.message.user,
|
||||
constraints: BoxConstraints.tight(
|
||||
Size(
|
||||
24,
|
||||
24,
|
||||
),
|
||||
),
|
||||
showOnlineStatus: false,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
},
|
||||
itemCount: widget.mediaAttachments.length,
|
||||
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
|
||||
|
||||
@@ -332,7 +332,6 @@ class _MessageListViewState extends State<MessageListView> {
|
||||
tileAnchor: Alignment.topCenter,
|
||||
childAnchor: Alignment.topCenter,
|
||||
message: statusString,
|
||||
child: LazyLoadScrollView(
|
||||
child: LazyLoadScrollView(
|
||||
onStartOfPage: () async {
|
||||
_inBetweenList = false;
|
||||
@@ -401,18 +400,16 @@ class _MessageListViewState extends State<MessageListView> {
|
||||
nextMessage.createdAt.toLocal(),
|
||||
Units.DAY,
|
||||
)) {
|
||||
final divider =
|
||||
widget.dateDividerBuilder != null
|
||||
final divider = widget.dateDividerBuilder != null
|
||||
? widget.dateDividerBuilder(
|
||||
nextMessage.createdAt.toLocal(),
|
||||
)
|
||||
: DateDivider(
|
||||
dateTime:
|
||||
nextMessage.createdAt.toLocal(),
|
||||
dateTime: nextMessage.createdAt.toLocal(),
|
||||
);
|
||||
return Padding(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
vertical: 12.0),
|
||||
padding:
|
||||
const EdgeInsets.symmetric(vertical: 12.0),
|
||||
child: divider,
|
||||
);
|
||||
}
|
||||
@@ -442,8 +439,7 @@ class _MessageListViewState extends State<MessageListView> {
|
||||
widget.parentMessage,
|
||||
);
|
||||
} else {
|
||||
return buildParentMessage(
|
||||
widget.parentMessage);
|
||||
return buildParentMessage(widget.parentMessage);
|
||||
}
|
||||
}
|
||||
if (i == messages.length + 1) {
|
||||
@@ -479,8 +475,8 @@ class _MessageListViewState extends State<MessageListView> {
|
||||
} else {
|
||||
if (widget.messageBuilder != null) {
|
||||
messageWidget = Builder(
|
||||
key: ValueKey<String>(
|
||||
'MESSAGE-${message.id}'),
|
||||
key:
|
||||
ValueKey<String>('MESSAGE-${message.id}'),
|
||||
builder: (context) => widget.messageBuilder(
|
||||
context,
|
||||
MessageDetails(
|
||||
@@ -500,7 +496,6 @@ class _MessageListViewState extends State<MessageListView> {
|
||||
},
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}),
|
||||
if (widget.showScrollToBottom) _buildScrollToBottom(),
|
||||
|
||||
Reference in New Issue
Block a user