ShakeWidget constructor
const
ShakeWidget({})
Implementation
const ShakeWidget({
super.key,
required this.child,
required this.controller,
this.duration = const Duration(milliseconds: 800), // Increased duration
this.deltaX = 6, // Slightly increased horizontal movement
this.oscillations = 4, // Fewer oscillations for more steady shaking
this.curve = Curves.easeInOut, // Changed to easeInOut for smoother transitions
});