We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85a29af commit c4f9615Copy full SHA for c4f9615
demos/supabase-todolist/lib/attachments/photo_widget.dart
@@ -38,7 +38,7 @@ class _PhotoWidgetState extends State<PhotoWidget> {
38
39
bool fileExists = await File(photoPath).exists();
40
41
- return _ResolvedPhotoState(photoPath: null, fileExists: fileExists);
+ return _ResolvedPhotoState(photoPath: photoPath, fileExists: fileExists);
42
}
43
44
@override
@@ -83,7 +83,7 @@ class _PhotoWidgetState extends State<PhotoWidget> {
83
84
85
String? filePath = data.photoPath;
86
- bool fileIsDownloading = data.fileExists;
+ bool fileIsDownloading = !data.fileExists;
87
88
if (fileIsDownloading) {
89
return const Text("Downloading...");
0 commit comments