User experience & level

This commit is contained in:
2024-09-08 12:32:21 +08:00
parent 1fd042bcae
commit d8b2c7f81e
10 changed files with 187 additions and 17 deletions

View File

@ -347,8 +347,9 @@ class _AttachmentEditorPopupState extends State<AttachmentEditorPopup> {
FutureBuilder(
future: element.file.length(),
builder: (context, snapshot) {
if (!snapshot.hasData)
if (!snapshot.hasData) {
return const SizedBox.shrink();
}
return Text(
_formatBytes(snapshot.data!),
style: Theme.of(context).textTheme.bodySmall,