-
-
Notifications
You must be signed in to change notification settings - Fork 98
Description
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,
);