我安装了flutter_webview_plugin。我试图启动一个自定义的静态html页面,而不是我的网址(我的网站'wwww.duevents.in'),如果没有互联网连接,因为“网页不可用”页面看起来不是很专业。
我用它来检查设备上的互联网,它运行良好(当互联网连接时,“connectionStatus==true”,反之亦然):
Future check() async {
try {
final result = await InternetAddress.lookup('google.com');
if (result.isNotEmpty