Skip to content

Commit

Permalink
docs: Fix broken code example for ColorEffect (flame-engine#3382)
Browse files Browse the repository at this point in the history
ColorEffect in the docs is using an positional parameter for
opacityFrom, but its actually a named parameter.


The docs example for ColorEffect is using a positional parameter instead
of a named parameter, where the definition is using a named parameter.

Closes: flame-engine#3383

Co-authored-by: Jochum van der Ploeg <[email protected]>
  • Loading branch information
bradcypert and wolfenrain authored Dec 13, 2024
1 parent ba3b225 commit ac64f2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/flame/effects.md
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ Usage example:
final effect = ColorEffect(
const Color(0xFF00FF00),
EffectController(duration: 1.5),
opacityFrom = 0.2,
opacityFrom: 0.2,
opacityTo: 0.8,
);
```
Expand Down

0 comments on commit ac64f2c

Please sign in to comment.