toly1994328 / toly1994328/FlutterUnit

对悬浮按钮的疑惑

Open
#72 2 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.