KeyboardStatus.on((height){
if(mounted){ //mounted 挂在后在setState
setState(() {
keyBordHeight=height;
});
}
});
KeyboardStatus.on((height){
if(mounted){ //mounted 挂在后在setState
setState(() {
keyBordHeight=height;
});
}
});
转载于:https://my.oschina.net/woddp/blog/3031796