fix(ArtistCard): linux shadow

This commit is contained in:
Kingkor Roy Tirtho 2022-11-12 13:35:37 +06:00
parent b3c27d1fca
commit c1868817e5

View File

@ -33,24 +33,18 @@ class ArtistCard extends HookWidget {
ios: null, ios: null,
macos: null, macos: null,
linux: BoxShadow( linux: BoxShadow(
blurRadius: 10, blurRadius: 6,
offset: const Offset(0, 3), color: Theme.of(context).shadowColor.withOpacity(0.3),
spreadRadius: 5,
color: Theme.of(context).shadowColor,
), ),
windows: null, windows: null,
), ),
); );
final splash = usePlatformProperty<InteractiveInkFeatureFactory?>( final splash = usePlatformProperty<InteractiveInkFeatureFactory?>(
(context) => PlatformProperty.multiPlatformGroup({ (context) => PlatformProperty.only(
InkRipple.splashFactory: {TargetPlatform.android, TargetPlatform.linux}, android: InkRipple.splashFactory,
NoSplash.splashFactory: { other: NoSplash.splashFactory,
TargetPlatform.windows, ),
TargetPlatform.macOS,
TargetPlatform.iOS,
}
}),
); );
return SizedBox( return SizedBox(