TF-2754 Fix yellow lines under text widgets of item downloading in browser

This commit is contained in:
dab246
2024-04-01 14:09:04 +07:00
committed by Dat H. Pham
parent fce9ce9ea3
commit c021e00bf4
@@ -61,19 +61,26 @@ class DownloadTaskItemWidget extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Text(taskState.attachment.generateFileName(), DefaultTextStyle(
style: const TextStyle(color: Colors.white, fontSize: 14),
child: Text(
taskState.attachment.generateFileName(),
overflow: CommonTextStyle.defaultTextOverFlow, overflow: CommonTextStyle.defaultTextOverFlow,
softWrap: CommonTextStyle.defaultSoftWrap, softWrap: CommonTextStyle.defaultSoftWrap,
maxLines: 1, maxLines: 1,
style: const TextStyle(color: Colors.white, fontSize: 14)), )
),
const SizedBox(height: 4), const SizedBox(height: 4),
Text( DefaultTextStyle(
style: const TextStyle(color: Colors.white, fontSize: 12),
child: Text(
'${ByteConverter(taskState.downloaded.toDouble()).toHumanReadable(SizeUnit.MB)}/' '${ByteConverter(taskState.downloaded.toDouble()).toHumanReadable(SizeUnit.MB)}/'
'${ByteConverter(taskState.total.toDouble()).toHumanReadable(SizeUnit.MB)}', '${ByteConverter(taskState.total.toDouble()).toHumanReadable(SizeUnit.MB)}',
softWrap: CommonTextStyle.defaultSoftWrap, softWrap: CommonTextStyle.defaultSoftWrap,
overflow: CommonTextStyle.defaultTextOverFlow, overflow: CommonTextStyle.defaultTextOverFlow,
maxLines: 1, maxLines: 1,
style: const TextStyle(color: Colors.white, fontSize: 12)) )
)
], ],
), ),
) )