update
- adjust risky animation offset - show inventory in shop
This commit is contained in:
@@ -85,8 +85,11 @@ class BattleAnimationWidgetState extends State<BattleAnimationWidget>
|
||||
if (!mounted) return;
|
||||
|
||||
// 2. Dash to Target (Impact)
|
||||
_translateAnimation = Tween<Offset>(begin: Offset.zero, end: targetOffset)
|
||||
.animate(
|
||||
// Adjust offset to prevent complete overlap (stop slightly short) since both share the same layer stack
|
||||
final adjustedOffset = targetOffset * 0.5;
|
||||
|
||||
_translateAnimation =
|
||||
Tween<Offset>(begin: Offset.zero, end: adjustedOffset).animate(
|
||||
CurvedAnimation(
|
||||
parent: _translateController,
|
||||
curve: Curves.easeInExpo, // Heavy impact curve
|
||||
|
||||
Reference in New Issue
Block a user