diff --git a/lib/src/components/toast/brn_toast.dart b/lib/src/components/toast/brn_toast.dart index 158edbca..41d4e9eb 100644 --- a/lib/src/components/toast/brn_toast.dart +++ b/lib/src/components/toast/brn_toast.dart @@ -77,7 +77,7 @@ class BrnToast { /// 自动根据内容长度决定显示时长,更加人性化 final int autoDuration = min(text.length * 0.06 + 0.8, 5.0).ceil(); final Duration finalDuration = - duration ?? Duration(milliseconds: autoDuration); + duration ?? Duration(seconds: autoDuration); final OverlayEntry overlayEntry = OverlayEntry( builder: (context) { return _ToastWidget(