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

Added function to test hit on nodes in the animation. #289

Open
wants to merge 2 commits into
base: stable
Choose a base branch
from

Commits on Dec 18, 2020

  1. Added function to test hit on nodes in the animation.

    Very useful feature, that should help with making animatable buttons etc..
    When extending FlareControls and overriding setViewTransform, one should add call to "super.setViewTransform(viewTransform);" in order to make it work.
    Example:
    wrap your FlareActor with GestureDetector. add onTapDown Event, and ask the flare controller which nodes were clicked.
    			GestureDetector(child: FlareActor(
                                "assets/Teddy.flr",
                                shouldClip: false,
                                alignment: Alignment.bottomCenter,
                                fit: BoxFit.contain,
                                controller: _teddyController,
                              ), onTapDown : (details){
                                print (_teddyController.deepHitTest(details.globalPosition));
                              }
                              )
    gnudles committed Dec 18, 2020
    Configuration menu
    Copy the full SHA
    f867753 View commit details
    Browse the repository at this point in the history

Commits on Dec 21, 2020

  1. Configuration menu
    Copy the full SHA
    5b81d81 View commit details
    Browse the repository at this point in the history