In android 10 clipboard return null but in others android version is ok and not problem.
This problem only exists when use clipboard in AppLifecycleState.resumed
my code:
@override
void didChangeAppLifecycleState(AppLifecycleState state) async {
super.didChangeAppLifecycleState(state);
switch (state) {
case AppLifecycleState.resumed:
ClipboardData data = await Clipboard.getData(Clipboard.kTextPlain);
print("onResumed __${data}");
break;
}
}