0
点赞
收藏
分享

微信扫一扫

Flutter & 鸿蒙next版本:自定义对话框与表单验证的动态反馈与错误处理

hoohack 2024-11-06 阅读 4
flutter

错误信息如下:

Typically, this is done by calling "WidgetsFlutterBinding.ensureInitialized()" or "runApp()" (the latter calls the former). Typically this call is done in the "void main()" method. The "ensureInitialized" method is idempotent; calling it multiple times is not harmful.

需要在调用之前初始化

WidgetsFlutterBinding.ensureInitialized()

举报

相关推荐

自定义带搜索的对话框

0 条评论