From c1868817e5abb8a4152646f00a0395933fee7823 Mon Sep 17 00:00:00 2001 From: Kingkor Roy Tirtho Date: Sat, 12 Nov 2022 13:35:37 +0600 Subject: [PATCH] fix(ArtistCard): linux shadow --- lib/components/Artist/ArtistCard.dart | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/lib/components/Artist/ArtistCard.dart b/lib/components/Artist/ArtistCard.dart index aec4b3e78..bf8784b3e 100644 --- a/lib/components/Artist/ArtistCard.dart +++ b/lib/components/Artist/ArtistCard.dart @@ -33,24 +33,18 @@ class ArtistCard extends HookWidget { ios: null, macos: null, linux: BoxShadow( - blurRadius: 10, - offset: const Offset(0, 3), - spreadRadius: 5, - color: Theme.of(context).shadowColor, + blurRadius: 6, + color: Theme.of(context).shadowColor.withOpacity(0.3), ), windows: null, ), ); final splash = usePlatformProperty( - (context) => PlatformProperty.multiPlatformGroup({ - InkRipple.splashFactory: {TargetPlatform.android, TargetPlatform.linux}, - NoSplash.splashFactory: { - TargetPlatform.windows, - TargetPlatform.macOS, - TargetPlatform.iOS, - } - }), + (context) => PlatformProperty.only( + android: InkRipple.splashFactory, + other: NoSplash.splashFactory, + ), ); return SizedBox(