Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Long durations make animations stutter #53

Open
martipello opened this issue Apr 19, 2024 · 0 comments
Open

Long durations make animations stutter #53

martipello opened this issue Apr 19, 2024 · 0 comments

Comments

@martipello
Copy link

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,
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant