Skip to content

Commit c4f9615

Browse files
committed
Fix regressions.
1 parent 85a29af commit c4f9615

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demos/supabase-todolist/lib/attachments/photo_widget.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class _PhotoWidgetState extends State<PhotoWidget> {
3838

3939
bool fileExists = await File(photoPath).exists();
4040

41-
return _ResolvedPhotoState(photoPath: null, fileExists: fileExists);
41+
return _ResolvedPhotoState(photoPath: photoPath, fileExists: fileExists);
4242
}
4343

4444
@override
@@ -83,7 +83,7 @@ class _PhotoWidgetState extends State<PhotoWidget> {
8383
}
8484

8585
String? filePath = data.photoPath;
86-
bool fileIsDownloading = data.fileExists;
86+
bool fileIsDownloading = !data.fileExists;
8787

8888
if (fileIsDownloading) {
8989
return const Text("Downloading...");

0 commit comments

Comments
 (0)