Skip to content

Commit

Permalink
Fix regressions.
Browse files Browse the repository at this point in the history
  • Loading branch information
rkistner committed Jan 3, 2024
1 parent 85a29af commit c4f9615
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demos/supabase-todolist/lib/attachments/photo_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class _PhotoWidgetState extends State<PhotoWidget> {

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

return _ResolvedPhotoState(photoPath: null, fileExists: fileExists);
return _ResolvedPhotoState(photoPath: photoPath, fileExists: fileExists);
}

@override
Expand Down Expand Up @@ -83,7 +83,7 @@ class _PhotoWidgetState extends State<PhotoWidget> {
}

String? filePath = data.photoPath;
bool fileIsDownloading = data.fileExists;
bool fileIsDownloading = !data.fileExists;

if (fileIsDownloading) {
return const Text("Downloading...");
Expand Down

0 comments on commit c4f9615

Please sign in to comment.