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

hook GestureRecognizer.invokeCallback no effect. #14

Closed
Kila2 opened this issue Sep 9, 2019 · 2 comments
Closed

hook GestureRecognizer.invokeCallback no effect. #14

Kila2 opened this issue Sep 9, 2019 · 2 comments

Comments

@Kila2
Copy link

Kila2 commented Sep 9, 2019

I'm try hook abstract class GestureRecognizer.invokeCallback but not effect.Is it support the abstract class?

@Execute("package:flutter/src/gestures/recognizer.dart",
      "GestureRecognizer", "-invokeCallback")
  @pragma("vm:entry-point")
  dynamic hookinvokeCallback(PointCut pointcut) {
    var raw = pointcut.positionalParams[0];
    print("invokeCallback");
    return pointcut.proceed();
  }
@Kila2
Copy link
Author

Kila2 commented Sep 10, 2019

@Execute("package:flutter/src/widgets/navigator.dart","NavigatorState", "-pop")
  @pragma("vm:entry-point")
  void hookpop(PointCut pointcut) {
    return pointcut.proceed();
  }

The code not work, too.
Here is function define.I think may de the first param's issue.

@optionalTypeArgs
  bool pop<T extends Object>([ T result ]);

@kangwang1988
Copy link
Contributor

kangwang1988 commented Sep 12, 2019

Fixed in 7dfd797

@Kila2

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

2 participants