feat: updated drag effect
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user