website icon indicating copy to clipboard operation
website copied to clipboard

[PAGE ISSUE]: 'Animate a widget using a physics simulation'

Open afroditexekoukoulotaki opened this issue 3 years ago • 4 comments

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

afroditexekoukoulotaki avatar Jun 22 '22 09:06 afroditexekoukoulotaki

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.

danagbemava-nc avatar Jun 22 '22 09:06 danagbemava-nc

Thanks for the report!

domesticmouse avatar Jun 22 '22 11:06 domesticmouse

Hey thanks for this! I've made the update, will include it in my upcoming excerpts PR for you to review @domesticmouse.

khanhnwin avatar Jul 06 '22 20:07 khanhnwin

I believe this was fixed in https://github.com/flutter/website/pull/7335/files#diff-9c51f57975935af193999aadec67c3dc51fa7091661fad5bf742f3453d9ccaaa

domesticmouse avatar Jul 07 '22 00:07 domesticmouse