Skip to content

Commit

Permalink
fix(ArtistCard): linux shadow
Browse files Browse the repository at this point in the history
  • Loading branch information
KRTirtho committed Nov 12, 2022
1 parent b3c27d1 commit c186881
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions lib/components/Artist/ArtistCard.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<InteractiveInkFeatureFactory?>(
(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(
Expand Down

0 comments on commit c186881

Please sign in to comment.