Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions lib/widgets/gallery_viewer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ class GalleryViewer extends StatelessWidget {
tag: imagesKeys[index],
child: Image.asset(
images[index],
// Static background color for better visibility of illustrations
// with transparency, especially in dark mode
colorBlendMode: BlendMode.dstOver,
color: Theme.of(context).colorScheme.onPrimary,
errorBuilder: (context, _, _) {
return Image.asset(
'assets/images/placeholder_image.png',
Expand Down Expand Up @@ -201,6 +205,10 @@ class _GalleryNavigatorState extends State<GalleryNavigator> {
tag: widget.imagesKeys[index],
child: Image.asset(
widget.images[index],
// Static background color for better visibility of illustrations
// with transparency, especially in dark mode
colorBlendMode: BlendMode.dstOver,
color: Theme.of(context).colorScheme.onPrimary,
errorBuilder: (context, _, _) {
return Image.asset(
'assets/images/placeholder_image.png',
Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/question_inputs/list_input.dart
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ class _ListInputItemState extends State<ListInputItem> with SingleTickerProvider
// Static background color for better visibility of illustrations
// with transparency, especially in dark mode
colorBlendMode: BlendMode.dstOver,
color: Colors.grey.shade100,
color: Theme.of(context).colorScheme.onPrimary,
height: 90,
errorBuilder: (context, _, _) {
return Image.asset(
Expand Down