Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

调用void _showToast() async { await SmartDialog.showToast('test toast'); print('--------------------------'); }报错 #21

Closed
lnd1992 opened this issue Dec 14, 2021 · 3 comments
Labels
unread document Documentation explained, unread documentation

Comments

@lnd1992
Copy link

lnd1992 commented Dec 14, 2021

Reload already in progress, ignoring request
Restarted application in 992ms.
[VERBOSE-2:ui_dart_state.cc(209)] Unhandled Exception: LateInitializationError: Field '_toast@819397047' has not been initialized.
#0 DialogProxy._toast (package:flutter_smart_dialog/src/helper/dialog_proxy.dart)
package:flutter_smart_dialog/…/helper/dialog_proxy.dart:1
#1 DialogProxy.showToast
package:flutter_smart_dialog/…/helper/dialog_proxy.dart:118
#2 SmartDialog.showToast
package:flutter_smart_dialog/src/smart_dialog.dart:262
#3 _showToast
package:test1/FlutterSmartDialog/flutter_smart_dialog.dart:39
#4 FlutterSmartDialog.build.
package:test1/FlutterSmartDialog/flutter_smart_dialog.dart:17

@xdd666t
Copy link
Member

xdd666t commented Dec 14, 2021

你做了初始化操作?

image

@lnd1992
Copy link
Author

lnd1992 commented Dec 14, 2021

你做了初始化操作?

image

嗯嗯,看到了,没做初始化

@xdd666t
Copy link
Member

xdd666t commented Dec 14, 2021

麻了,你先看看这文章吧,是对库功能和用法的一些描述:https://juejin.cn/post/7026150456673959943

@xdd666t xdd666t closed this as completed Dec 14, 2021
@xdd666t xdd666t added question Further information is requested help wanted Extra attention is needed unread document Documentation explained, unread documentation and removed question Further information is requested help wanted Extra attention is needed labels Jan 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unread document Documentation explained, unread documentation
Projects
None yet
Development

No branches or pull requests

2 participants