flutter_screenshot_callback
flutter_screenshot_callback copied to clipboard
Listener dosen't work
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 ");
});
}
same here , this package not working
same here, iOS work well,Android not work