bot_toast library

Classes

BackButtonBehavior
此枚举会决定Toast对于物理返回键的处理方式
BotToast
When generating widgets using the ToastBuilder method, please ensure that the generated widget's background does not absorb click events. For example, Scaffold and Material widgets will by default occupy the entire parent space and absorb events (even if they are transparent). You can refer to the material.dart -> _RenderInkFeatures class -> hitTestSelf method for specific examples. If you must generate such widgets, consider using IgnorePointer. Failure to follow this rule may result in the malfunction of certain features, such as the allowClick feature.
BotToastNavigatorObserver
If your project has multiple Navigator instances, please add the BotToastNavigatorObserver to the Navigator.observers.
BotToastNavigatorObserverProxy
PreferDirection
TickerProviderImpl

Typedefs

CancelFunc = void Function()
Toast的关闭函数,调用将会提前关闭对应的Toast
FutureFunc = Future<void> Function()
PopTestFunc = bool Function()
ToastBuilder = Widget Function(CancelFunc cancelFunc)
WrapAnimation = Widget Function(AnimationController controller, CancelFunc cancelFunc, Widget widget)
WrapWidget = Widget Function(CancelFunc cancelFunc, Widget widget)