Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make listeners work #73

Closed
joachimbulow opened this issue Jun 2, 2023 · 1 comment
Closed

Make listeners work #73

joachimbulow opened this issue Jun 2, 2023 · 1 comment

Comments

@joachimbulow
Copy link

joachimbulow commented Jun 2, 2023

Is your feature request related to a problem? Please describe.
It is hard to make custom functionality that depends on sheet state work without the listeners emitting values.

Describe the solution you'd like
When the controller animation value changes, please let it emit values so we can attach listeners.
E.g. i want to blur out the lowerLayer, which i cannot really do while the listeners do not work, without manual work.

Really makes the library almost useless

E.g.


  @override
  void initState() {
    super.initState();
    controller = RubberAnimationController(
      vsync: this,
      lowerBoundValue: AnimationControllerValue(pixel: 0),
      upperBoundValue: AnimationControllerValue(percentage: 0.9),
      duration: Duration(milliseconds: 200),
    );

    controller.addListener(() {
      // Do my custom stuff
    });
@joachimbulow
Copy link
Author

Nvm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant