Fluttertoast无法在HarmonyOS上显示?

使用flutter开发,引用第三方库Fluttertoast,在HarmonyOS设备无法显示。代码如下:

Fluttertoast.showToast(
  msg: msg,
toastLength: Toast.LENGTH_SHORT,
gravity: ToastGravity.CENTER,
timeInSecForIosWeb: 1,
backgroundColor: const Color(0xFF000000),
textColor: Colors.white,
fontSize: 16,
webPosition: "center"
);
阅读 603
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进