website
website copied to clipboard
[PAGE ISSUE]: 'Animate a widget using a physics simulation'
Page URL
https://docs.flutter.dev/cookbook/animation/physics-simulation/
Page source
https://github.com/flutter/website/tree/main/src/cookbook/animation/physics-simulation.md
Describe the problem
There is an error in line 32
Expected fix
State<DraggableCard> createState() => _DraggableCardState();
This fixes the issue.
Additional context
No response
Hi @afroditexekoukoulotaki, thanks for catching that.
/cc @domesticmouse It looks like the new lint rule is flagging that line
Avoid using private types in public APIs.
Thanks for the report!
Hey thanks for this! I've made the update, will include it in my upcoming excerpts PR for you to review @domesticmouse.
I believe this was fixed in https://github.com/flutter/website/pull/7335/files#diff-9c51f57975935af193999aadec67c3dc51fa7091661fad5bf742f3453d9ccaaa