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