fix: File event design

This commit is contained in:
Krille Fear 2022-12-30 10:36:54 +01:00
commit 54dff35ea4
3 changed files with 25 additions and 16 deletions

View file

@ -51,24 +51,27 @@ class MessageDownloadContent extends StatelessWidget {
)
: null,
),
const Divider(),
Row(
children: [
Text(
filetype,
style: TextStyle(
color: textColor.withAlpha(150),
),
),
const Spacer(),
if (sizeString != null)
const Divider(height: 1),
Padding(
padding: const EdgeInsets.symmetric(horizontal: 16.0, vertical: 8),
child: Row(
children: [
Text(
sizeString,
filetype,
style: TextStyle(
color: textColor.withAlpha(150),
),
),
],
const Spacer(),
if (sizeString != null)
Text(
sizeString,
style: TextStyle(
color: textColor.withAlpha(150),
),
),
],
),
),
],
),