- fix: Modify Assertion Logic
- fix: Fix the problem of nil judgment error
- fix: Delete unused packages
- fix: Using bodyMedium instead of bodyText2
- feat: Support global configuration
- docs: Add English API documentation and English comments
- feat: Added margin param to showNotification
- feat: Add safe area flag for custom options
- fix: Support flutter 3.x
- fix: #107
- docs: Update CHANGELOG.md
- refactor: Migrate to sound null safety
-
fix: cancel the use of
nullOk
attribute -
feat: optimize
toast
display sequence logic -
feat: add options for users to style titles
- fix: The bug that
ProxyDispose.disposeCallback
callback cannot be triggered
- feat: add
enableKeyboardSafeArea
option
- fix bug: #73
- Add two parameters:
backgroundColor
andborderRadius
toshowSimpleNotification
andshowNotification
methods
-
Reimplemented the underlying initialization logic, the code is simpler and more general, and no longer depends on
Navigator
-
Modify the initialization method
- bug fix
- feat: Support to intercept click back button event
- fix: bug #43
- feat: add onClose callback
- bug fix: Use
safeRun
method to ensure normal running ofrearrange
-
重构底层的实现方式以规避一些隐晦的bug
-
Refactor the underlying implementation to avoid some hidden bugs
-
showSimpleNotification和showNotification方法添加
onTap
,onLongPress
参数 -
showSimpleNotification and showNotification methods add
onTap
,onLongPress
parameters
-
bug fix: see #11
-
移除
BotToastInit
的key
参数 -
BotToast.init
方法变为私有方法不再公开 -
重构了初始化的方式
-
Remove the
key
parameter ofBotToastInit
-
BotToast.init
method becomes private and no longer public -
Refactored the way to initialize
- Update document
- Delete useless print
-
修改初始化的方式,现在更为通用
-
支持自定义Toast的动画和持续时间😉
-
showEnhancedWidget
方法的closeFunc
参数其含义已经发生了变化了,现在是等待closeFunc
函数执行完毕才移除Toast -
添加
showAnimationWidget
方法,可以使用此方法来高度自定义一个有动画的Toast🤩 -
移除
reInit
方法(2.0版本不再需要),以及PreferDirection.Below
和PreferDirection.Upside
这两个已经被废除的枚举 -
WrapWidget
类型方法参数发生变化(破坏性的),但是如果你没有直接使用showEnhancedWidget
方式的话,这个修改对1.x版本的代码其实是无影响的,如果有使用请看这里进行兼容1.x版本升级到2.x版本 -
showXxxNotification
添加dismissDirections
参数:表示能进行滑动关闭的方向 -
showXxxText
,showXxxLoading
,showXxxNotification
等方法添加了align
参数:表示ToastContent区域在MainContent区域的对齐,可用于自定义Toast放置的位置 -
修复了
showAttachedWidget
方法的一些bug -
支持flutter web(注意不能确保其稳定性)
-
更新example的样式,并添加了更多demo
-
Modify the way of initialization, now more general
-
Support for custom Toast animation and animation duration😉
-
The meaning of the
closeFunc
parameter of theshowEnhancedWidget
method has changed. Now it is wait for thecloseFunc
function to complete before removing Toast. -
Add the
showAnimationWidget
method, you can use this method to highly customize an animated Toast🤩 -
Remove the
reInit
method and the two deprecated enumerationsPreferDirection.Below
andPreferDirection.Upside
-
WrapWidget
type method parameter changed (not compatible with 1.x version),see 1.x version upgrade 2.x version -
showXxxNotification
AdddismissDirections
parameter -
showXxxText
,showXxxLoading
,showXxxNotification
method addsalign
parameter -
Fixed some bugs in the
showAttachedWidget
method -
Support flutter web (note that it cannot ensure its stability)
-
Updated the style of example and added more demos
- Bug fix:
The targetContext of the showAttachedWidget method causes a positioning error when it is inside the ScrollView.
showAttachedWidget方法的targetContext在ScrollView里面时导致定位出错
-
主要对showAttachedWidget方法进行了增强,现在支持更多方向,定位更准确了。
-
PreferDirection.Below
和PreferDirection.Upside
被废弃了,可以改用表达更清晰的topCenter,和bottomCenter来代替,且效果完全一致。这两个枚举将会在下个大版本被删除! -
showAttachedWidget
的preferDirection
只是期望的方向,实际的位置可能因为空间不足而遭到调整 -
实际调整顺序可以拿
topLeft
来进行说明,如果上方空间不足则调整为bottomLeft
,然后左边空间不足的话就再判断右边的空间是否充足,充足的话结果为bottomRight
,不充足最终结果为bottomCenter
-
对于
preferDirection=xxxCenter
的情况,其交叉轴的偏移将会忽略
- 修复当pop所有Route再push Route会出现Bug
- 加固了当项目使用MaterialApp.navigatorKey,能使用reInit重新初始化
- 放宽init重复初始化检查的程度
- 替换scheduleFrame方法为ensureVisualUpdate
- Toast关闭后,清理向BotToastNavigatorObserver注册的函数
- 更新文档及在线例子
- 更新文档及在线例子
- 1.支持弹出Notification Toast
- 2.支持某个Widget 显示
- 3.对已有的功能进行重构,增强各个方法
- 添加Loading Toast
- 只是显示Widget到屏幕