wave icon indicating copy to clipboard operation
wave copied to clipboard

Long durations make animations stutter

Open martipello opened this issue 1 year ago • 1 comments

Describe the bug When making the durations long the performance of the widget degrades to being very stuttery and having animation jank

add this widget to a blank new project return WaveWidget( config: CustomConfig( gradients: [ [Colors.white, Colors.white, Colors.white], const [Color(0xFF3ea894), Color(0xFF00BAB9), Color(0xFF42b58d)], const [Color(0xFFbefed2), Color(0xFF39dbb1), Color(0xFF00cda3)], const [Color(0xFF3ea894), Color(0xFF00BAB9), Color(0xFF42b58d)], ], durations: [ 43000, 43000, 45000, 45000, ], heightPercentages: [ 0.55, 0.552, 0.90, 0.91, ], // blur: const MaskFilter.blur(BlurStyle.solid, 6), gradientBegin: Alignment.centerRight, gradientEnd: Alignment.centerLeft, ), size: const Size( double.infinity, 300, // double.infinity also has the error i thought lowering the height may improve it but it didnt ), waveFrequency: 1, waveAmplitude: 180, backgroundColor: Colors.transparent, );

martipello avatar Apr 19 '24 13:04 martipello

@martipello This package seems to be no longer maintained. Try my package: https://pub.dev/packages/wave_widget

vanvixi avatar Sep 06 '25 15:09 vanvixi