@@ -447,6 +447,9 @@ class SmartDialog {
447447 ///
448448 /// [alignment] :control the location of toast on the screen
449449 ///
450+ /// [consumeEvent] : default (false), true (toast will consume touch events),
451+ /// false (toast no longer consumes events, touch events can penetrate toast)
452+ ///
450453 /// [time] :toast display time on the screen(Use the 'widget' param, this param will be invalid)
451454 ///
452455 /// [debounceTemp] :debounce feature
@@ -478,6 +481,8 @@ class SmartDialog {
478481 ///
479482 /// [alignment] :控制toast在屏幕上的显示位置(使用 'widget' 参数,该参数将失效)
480483 ///
484+ /// [consumeEvent] :默认(false),true(toast会消耗触摸事件),false(toast不再消耗事件,触摸事件能穿透toast)
485+ ///
481486 /// [time] :toast在屏幕上的显示时间
482487 ///
483488 /// [debounceTemp] :防抖功能(debounce)
@@ -495,6 +500,7 @@ class SmartDialog {
495500 Color ? maskColorTemp,
496501 Widget ? maskWidgetTemp,
497502 AlignmentGeometry alignment = Alignment .bottomCenter,
503+ bool ? consumeEvent,
498504 Duration ? time,
499505 bool ? debounceTemp,
500506 SmartToastType ? type,
@@ -508,6 +514,7 @@ class SmartDialog {
508514 animationDuration: animationDurationTemp ?? Duration (milliseconds: 200 ),
509515 maskColor: maskColorTemp ?? config.maskColor,
510516 maskWidget: maskWidgetTemp ?? config.maskWidget,
517+ consumeEvent: consumeEvent ?? false ,
511518 time: time ?? Duration (milliseconds: 2000 ),
512519 debounce: debounceTemp ?? config.debounce,
513520 type: type ?? SmartToastType .normal,
0 commit comments