bot_toast library

Classes

BotToast
ToastBuilder方法生成widget时,请确保生成的Widget背景不会吸收点击事件 例如Scaffold,Material都会默认占满整个父空间, 并且会吸收事件(就算透明也是这种情况),具体例子可看material.dart->_RenderInkFeatures class->hitTestSelf method 如果真的要生成,可以考虑使用IgnorePointer. 如果没有遵守规则,将会时某些功能失效例如allowClick功能就会失效
BotToastNavigatorObserver
如果你项目有多个Navigator,请将该BotToastNavigatorObserver添加到Navigator.observers
BotToastNavigatorObserverProxy
TickerProviderImpl

Functions

BotToastInit() TransitionBuilder

Enums

BackButtonBehavior
此枚举会决定Toast对于物理返回键的处理方式
PreferDirection

Typedefs

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