Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Silence heatmap color deprecations

laurenspriem0b03a43b7738
diff --git a/mobile/apps/photos/lib/ui/wrapped/wrapped_viewer_page.dart b/mobile/apps/photos/lib/ui/wrapped/wrapped_viewer_page.dart
index bd404a67ef..32395501b7 100644
--- a/mobile/apps/photos/lib/ui/wrapped/wrapped_viewer_page.dart
+++ b/mobile/apps/photos/lib/ui/wrapped/wrapped_viewer_page.dart
@@ -990,13 +990,12 @@ class _HeatmapCell extends StatelessWidget {
}
if (value == kWrappedHeatmapPaddedValue) {
final Color base = colorScheme.fillFaint;
- final double placeholderOpacity =
- (base.opacity * 0.4).clamp(0.0, 1.0).toDouble();
+ final double placeholderAlpha = (base.a * 0.4).clamp(0.0, 1.0).toDouble();
return Container(
width: width,
height: height,
decoration: BoxDecoration(
- color: base.withOpacity(placeholderOpacity),
+ color: base.withValues(alpha: placeholderAlpha),
borderRadius: BorderRadius.circular(3),
),
);