Change separator

This commit is contained in:
2024-05-26 12:25:11 +08:00
parent 87a7b4e888
commit a04e255beb

View File

@@ -169,10 +169,15 @@ class _TaskPage extends State<TaskPage> {
), ),
Row(mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Row(mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [
Expanded( Expanded(
child: FitText(texts: [ child: FitText(
(i18n.downloadedSize(getFileSize(p.downloadedBytes)), 0), texts: [
("${p.downloadedPage}/${p.totalPage}", 1) (i18n.downloadedSize(getFileSize(p.downloadedBytes)), 0),
], overflow: TextOverflow.ellipsis, maxLines: 1)), ("${p.downloadedPage}/${p.totalPage}", 1)
],
overflow: TextOverflow.ellipsis,
separator: i18n.comma,
maxLines: 1,
)),
Text("${getFileSize((speed * 1000).toInt())}/s"), Text("${getFileSize((speed * 1000).toInt())}/s"),
]), ]),
]); ]);