Skip to content

不能弹出提示 错误如下 #32

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

Closed
oh-jy opened this issue Aug 6, 2019 · 3 comments
Closed

不能弹出提示 错误如下 #32

oh-jy opened this issue Aug 6, 2019 · 3 comments

Comments

@oh-jy
Copy link

oh-jy commented Aug 6, 2019

I/flutter ( 8069): ══╡ EXCEPTION CAUGHT BY GESTURE ╞═══════════════════════════════════════════════════════════════════
I/flutter ( 8069): The following NoSuchMethodError was thrown while handling a gesture:
I/flutter ( 8069): The getter 'inMilliseconds' was called on null.
I/flutter ( 8069): Receiver: null
I/flutter ( 8069): Tried calling: inMilliseconds
I/flutter ( 8069):
I/flutter ( 8069): When the exception was thrown, this was the stack:
I/flutter ( 8069): #0 Object.noSuchMethod (dart:core-patch/object_patch.dart:50:5)
I/flutter ( 8069): #6 showToastWidget
package:oktoast/…/core/toast.dart:138
I/flutter ( 8069): #7 showToast
package:oktoast/…/core/toast.dart:71

showToastWidget line 138
Future.delayed(duration, () {
future.dismiss();
});

@CaiJingLong
Copy link
Member

Duration must be not null.

@oh-jy
Copy link
Author

oh-jy commented Aug 6, 2019

thanks 希望能把 duration 加上个required...看到源码里面有_defaultDuration 所以就没有传入

@oh-jy oh-jy closed this as completed Aug 6, 2019
@CaiJingLong
Copy link
Member

CaiJingLong commented Aug 6, 2019

This parameter has a default value, you mustn't have to pass in. But if you pass in, the duration can't be null.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants