Skip to content

Commit

Permalink
brn_toast time change to seconds (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
leftcoding authored Jan 4, 2022
1 parent 7dff62a commit 974e0da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/components/toast/brn_toast.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 974e0da

Please sign in to comment.