From 24210e22ab6f1439afa4feb4bfbfb7c1957b304c Mon Sep 17 00:00:00 2001 From: Lucio Baglione Date: Wed, 29 May 2024 10:30:15 +0200 Subject: [PATCH] feat: Add basic lerp function for image transitioning. --- .../lib/src/theme_extensions/brand_assets.dart | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/catalyst_voices/packages/catalyst_voices_brands/lib/src/theme_extensions/brand_assets.dart b/catalyst_voices/packages/catalyst_voices_brands/lib/src/theme_extensions/brand_assets.dart index 80b2af4eeb..d722ec6065 100644 --- a/catalyst_voices/packages/catalyst_voices_brands/lib/src/theme_extensions/brand_assets.dart +++ b/catalyst_voices/packages/catalyst_voices_brands/lib/src/theme_extensions/brand_assets.dart @@ -40,12 +40,11 @@ class BrandAssets extends ThemeExtension { ) { if (other is! BrandAssets) { return this; + } else if (t >= 0.5) { + return other; + } else { + return this; } - - return BrandAssets( - logo: logo, - logoIcon: logoIcon, - ); } }