fix(feed): fix comments ui

This commit is contained in:
mso7nueh
2024-09-03 10:30:42 +03:00
parent 8335cf4a6e
commit d519c505e7
4 changed files with 50 additions and 23 deletions

View File

@@ -51,7 +51,7 @@ class ChatBubbleWidget extends StatelessWidget {
!mediaData[index].toString().contains('.jpg') &&
!mediaData[index].toString().contains('.jpeg')) {
return ListTile(
contentPadding: EdgeInsets.zero,
contentPadding: EdgeInsets.all(4),
horizontalTitleGap: 8,
onTap: () async {
if (!await launchUrl(Uri.parse(baseUrl + '/storage/' + mediaData[index].toString()))) {
@@ -60,17 +60,17 @@ class ChatBubbleWidget extends StatelessWidget {
},
leading: Icon(
Icons.file_copy_outlined,
color: Color(0xFF2F80ED),
color: Colors.white,
),
trailing: Icon(
Icons.download_outlined,
color: Color(0xFF2F80ED),
color: Colors.white,
),
title: Text(
mediaData[index].toString().replaceAll('chat_files/', ''),
maxLines: 2,
style: TextStyle(
color: Color(0xFF323F4B),
color: Colors.white,
fontSize: 12,
overflow: TextOverflow.ellipsis,
),
@@ -110,12 +110,15 @@ class ChatBubbleWidget extends StatelessWidget {
style: TextStyle(color: isCurrentUser ? Colors.white : Color(0xFF323F4B), height: 1),
),
SizedBox(height: 4),
Text(
DateTime.parse(sendTime).format('hh:mm'),
style: TextStyle(
color: isCurrentUser ? Colors.white.withOpacity(0.4) : Color(0xFF323F4B).withOpacity(0.4),
height: 1,
fontSize: 10,
Padding(
padding: mediaData.length > 0 ? const EdgeInsets.only(right: 8, top: 4, left: 8) : EdgeInsets.zero,
child: Text(
DateTime.parse(sendTime).format('hh:mm'),
style: TextStyle(
color: isCurrentUser ? Colors.white.withOpacity(0.4) : Color(0xFF323F4B).withOpacity(0.4),
height: 1,
fontSize: 10,
),
),
),
],