Skip to content

Commit

Permalink
fix Image.src.base64 (#3919)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndonkoHenri authored Sep 2, 2024
1 parent e0fddfb commit 1a2ac5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/flet/lib/src/utils/box.dart
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ Widget buildImage({
gaplessPlayback: gaplessPlayback ?? true,
semanticLabel: semanticsLabel);
}
return image;
} catch (ex) {
return ErrorControl("Error decoding base64: ${ex.toString()}");
}
Expand Down Expand Up @@ -308,8 +309,7 @@ Widget buildImage({
}
}
}

return image;
}
return const ErrorControl("Either src or src_base64 must be specified.");
return const ErrorControl("A valid src or src_base64 must be specified.");
}

0 comments on commit 1a2ac5f

Please sign in to comment.