senderFileMessageWidget method
Implementation
Widget senderFileMessageWidget(
BuildContext context,
String fileName,
String fileSize,
) {
final isDark = Theme.of(context).brightness == Brightness.dark;
return RoundedContainer(
height: 75,
color: isDark ? const Color(0xff876969) : Colors.tealAccent,
borderRadius: BorderRadius.circular(20),
child: Row(
children: [
const SizedBox(
width: 25,
),
Icon(
Icons.insert_drive_file_outlined,
size: 40,
color: isDark ? Colors.white54 : Colors.blue,
),
const SizedBox(
width: 5,
),
Flexible(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.start,
children: [fileName.b2.size(13.4).overflowEllipsis, fileSize.cap],
),
)
],
),
);
}