implement dragging animation
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 47s
Pull Request Pipeline / lint (pull_request) Successful in 50s

This commit is contained in:
2026-05-09 17:36:18 +02:00
parent 385bd39aa1
commit 9781a20b38

View File

@@ -227,10 +227,42 @@ class _MatchResultViewState extends State<MatchResultView> {
physics: const NeverScrollableScrollPhysics(),
padding: EdgeInsets.zero,
proxyDecorator: (child, index, animation) {
return Material(
return AnimatedBuilder(
animation: animation,
builder: (context, child) {
final t = Curves.easeInOut.transform(
animation.value,
);
return Opacity(
opacity: t,
child: Material(
color: Colors.transparent,
elevation: 8,
child: Opacity(opacity: 0.9, child: child),
child: Container(
decoration: BoxDecoration(
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) {