浏览代码

Add icon to the thumbnail to indicate sync status

Vishnu Mohandas 4 年之前
父节点
当前提交
a6839c8a8f
共有 1 个文件被更改,包括 13 次插入0 次删除
  1. 13 0
      lib/ui/thumbnail_widget.dart

+ 13 - 0
lib/ui/thumbnail_widget.dart

@@ -88,6 +88,19 @@ class _ThumbnailWidgetState extends State<ThumbnailWidget> {
           duration: Duration(milliseconds: 400),
           child: content,
         ),
+        widget.file.uploadedFileID == null
+            ? Align(
+                alignment: Alignment.bottomRight,
+                child: Padding(
+                  padding: const EdgeInsets.only(right: 8, bottom: 4),
+                  child: Icon(
+                    Icons.cloud_off_outlined,
+                    size: 18,
+                    color: Colors.white.withOpacity(0.8),
+                  ),
+                ),
+              )
+            : Container(),
       ],
       fit: StackFit.expand,
     );