From cd31d117af7718008ec2e4afa24739bfc663db75 Mon Sep 17 00:00:00 2001 From: lifegpc Date: Fri, 2 Feb 2024 15:00:16 +0800 Subject: [PATCH] Allow all colors when generating icon color --- lib/components/thumbnail.dart | 3 ++- macos/Podfile.lock | 8 +++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/components/thumbnail.dart b/lib/components/thumbnail.dart index 063df82..8a26857 100644 --- a/lib/components/thumbnail.dart +++ b/lib/components/thumbnail.dart @@ -195,7 +195,8 @@ class _Thumbnail extends State { region: Rect.fromCenter( center: Offset(i.width / 2, i.height / 2), width: iconSize, - height: iconSize)); + height: iconSize), + filters: [(_) => true]); if (!_disposed) { setState(() { _iconColor = pattle.colors.first.computeLuminance() > 0.5 diff --git a/macos/Podfile.lock b/macos/Podfile.lock index c5011ab..6ec329e 100644 --- a/macos/Podfile.lock +++ b/macos/Podfile.lock @@ -6,6 +6,8 @@ PODS: - FlutterMacOS (1.0.0) - irondash_engine_context (0.0.1): - FlutterMacOS + - package_info_plus (0.0.1): + - FlutterMacOS - path_provider_foundation (0.0.1): - Flutter - FlutterMacOS @@ -24,6 +26,7 @@ DEPENDENCIES: - device_info_plus (from `Flutter/ephemeral/.symlinks/plugins/device_info_plus/macos`) - FlutterMacOS (from `Flutter/ephemeral`) - irondash_engine_context (from `Flutter/ephemeral/.symlinks/plugins/irondash_engine_context/macos`) + - package_info_plus (from `Flutter/ephemeral/.symlinks/plugins/package_info_plus/macos`) - path_provider_foundation (from `Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin`) - screen_retriever (from `Flutter/ephemeral/.symlinks/plugins/screen_retriever/macos`) - shared_preferences_foundation (from `Flutter/ephemeral/.symlinks/plugins/shared_preferences_foundation/darwin`) @@ -39,6 +42,8 @@ EXTERNAL SOURCES: :path: Flutter/ephemeral irondash_engine_context: :path: Flutter/ephemeral/.symlinks/plugins/irondash_engine_context/macos + package_info_plus: + :path: Flutter/ephemeral/.symlinks/plugins/package_info_plus/macos path_provider_foundation: :path: Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin screen_retriever: @@ -55,6 +60,7 @@ SPEC CHECKSUMS: device_info_plus: 5401765fde0b8d062a2f8eb65510fb17e77cf07f FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24 irondash_engine_context: da62996ee25616d2f01bbeb85dc115d813359478 + package_info_plus: 02d7a575e80f194102bef286361c6c326e4c29ce path_provider_foundation: 29f094ae23ebbca9d3d0cec13889cd9060c0e943 screen_retriever: 59634572a57080243dd1bf715e55b6c54f241a38 shared_preferences_foundation: 5b919d13b803cadd15ed2dc053125c68730e5126 @@ -63,4 +69,4 @@ SPEC CHECKSUMS: PODFILE CHECKSUM: 236401fc2c932af29a9fcf0e97baeeb2d750d367 -COCOAPODS: 1.14.2 +COCOAPODS: 1.15.0