flutter_screenshot_callback icon indicating copy to clipboard operation
flutter_screenshot_callback copied to clipboard

Listener dosen't work

Open JackHuang111 opened this issue 2 years ago • 2 comments

I use it just like the example, but the listener dosen't work

@override
  void initState(){
    super.initState();
    init();
  }

  @override
  void dispose() {
    super.dispose();
  }
  void init() async {
    await initScreenshotCallback();
  }

  //It must be created after permission is granted.
  Future<void> initScreenshotCallback() async {
    screenshotCallback = ScreenshotCallback();
    screenshotCallback.addListener(() {
      print("We can add multiple listeners ");
    });
  }

JackHuang111 avatar Jul 13 '22 05:07 JackHuang111

same here , this package not working

AhmedHammad0900 avatar Oct 09 '22 00:10 AhmedHammad0900

same here, iOS work well,Android not work

ericzhou2008 avatar Oct 13 '22 08:10 ericzhou2008