toly1994328 / toly1994328/FlutterUnit
对悬浮按钮的疑惑
Open
Nobody has claimed this yet.
- Dominant language
- Dart
- Stars
- 8.8k
- Forks
- 1.4k
- PR merge metrics
- No merged PRs in 30d
Description
flutter入门,对项目里的悬浮按钮组件OverlayToolWrapper很感兴趣,但是有一个疑惑,就是在初级路由页面的时候移动悬浮按钮会有一个靠边的动画,调用_ctrl.forward()之后_listenAnimate回调方法能正常执行,但是为什么进入子路由页面调用_ctrl.forward()之后_listenAnimate回调方法只执行了一次,所以靠边的动画消失了。
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read the OverlayToolWrapper implementation and trace _ctrl.forward() and the _listenAnimate callback on both the initial route and a child route. Reproduce the differing callback behavior, then document the cause and verify that the edge-snapping animation behaves consistently across those routes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100