两种方法
1,如果flutter作为module依赖,则原生也需要处理退出app,由原生来退出整个app
SystemNavigator.pop()
2,直接退出app,无需关注原生项目
exit(0)