feat: updated drag effect

This commit is contained in:
2026-05-09 18:37:02 +02:00
parent 79ce3efd0a
commit 496d411af6

View File

@@ -229,40 +229,35 @@ class _MatchResultViewState extends State<MatchResultView> {
proxyDecorator: (child, index, animation) { proxyDecorator: (child, index, animation) {
return AnimatedBuilder( return AnimatedBuilder(
animation: animation, animation: animation,
child: child,
builder: (context, child) { builder: (context, child) {
final t = Curves.easeInOut.transform( final alpha =
animation.value, (Curves.easeInOut.transform(
); animation.value,
return Opacity( ) *
opacity: t, 40)
child: Material( .toInt();
color: Colors.transparent, return Stack(
child: Container( children: [
decoration: BoxDecoration( child!,
borderRadius: CustomTheme Positioned.fill(
.standardBorderRadiusAll, left: 4,
boxShadow: [ top: 4,
BoxShadow( right: 4,
color: CustomTheme bottom: 4,
.primaryColor child: DecoratedBox(
.withAlpha(30), decoration: BoxDecoration(
blurRadius: 4, color: Colors.white.withAlpha(
alpha,
), ),
BoxShadow( borderRadius: CustomTheme
color: CustomTheme .standardBorderRadiusAll,
.primaryColor ),
.withAlpha(18),
blurRadius: 12,
spreadRadius: 2,
),
],
), ),
child: child,
), ),
), ],
); );
}, },
child: child,
); );
}, },
onReorder: (int oldIndex, int newIndex) { onReorder: (int oldIndex, int newIndex) {