Feat:
- Wrapper a
Material
widget when theOKToast
widget is not wrapped withMaterial
. - The min support of flutter SDK version to 3.7.0.
- Fix
Theatre
constructor and get rid ofView
for compatibilities. (#103)
- Fix position offset do not work when
movingOnWindowChange
is false. (#100)
- Replace
context.debugDoingBuild
flag withSchedulerBinding.instance.schedulerPhase
. (#97)
- Abstract
BuildContextPredicate
. (#95) - More text fields for
showToast
. (#96)
Migrate to Flutter 3, drop supports for previous Flutter versions.
- Remove deprecated
Miui10AnimBuilder
.
_ToastContainer
->ToastContainer
.- Add tests.
- Fix dismiss is invalid when called synchronously. (#88)
- Deprecated inner
Miui10AnimBuilder
.
- Quick fix for the
_throwIfNoContext
.
- Throw a more precise error if the
OKToast
widget is not wrapped correctly. - Bind
ToastFuture
withOverlayEntry
mounted state.
- Deliver overlay insertion into microtask.
- Expose
constraints
andmargin
forshowToast
method. (#84)
- Support
copyWith
forToastPosition
. (#82) - Integrate
animationBuilder
properly. (#81) - BREAKING CHANGE:
handleTouth
->handleTouch
. - Code cleanup.
- Null safety version.
- Fixed a memory leak issue.
- Fix health for pub.
- Fix #46.
New feature:
- Add animation for show/hide the oktoast.
Fix:
textAlign
of methodshowToast
.
New feature:
- handleTouch: Caller can use this property to respond to click events.
Change:
- This is a breaking change : The default value of dismissOtherToast of showToast is changed to better match the OKToast overall settings. .
Fix:
position
is not valid inshowToastWidget
.
Add param showAnim
param for dismiss method:
- dismissAllToast
- ToastManager.dismissAll
- ToastFuture.dismiss
Add for OKToast
:
- textAlign
- textPadding
Add for showToast
:
- textAlign
add textPadding for showToast method.
fix ToastPosition
offset params
add textDirection params
When ui.window's size changes, toast is moved.
Now, OKToast
add a params dismissOtherOnShow
to dismiss other toast.
use manager to manage ToastFuture
add a method dismissAllToast
to dismiss all toast.
add a param with showToast to dismiss other toast.
add new params to helper user listen toast dismiss
showToast and showToastWidget will return ToastFuture
the toastFuture call dismiss()
to dismiss toast.
oktoast support page level.
you can use oktoast wrap your Scaffold.
use BuildContext cache. then showToast
not need context, you can use the showToast
in anywhere.
support flutter sdk 0.10 ,fix bug
update the textAlign : TextAlign.center
update the overflow: TextOverflow.ellipsis,
fix defaultPosition
is invalid.
update readme
update readme
now libray is oktoast
stable version
the toast can set position
- showToast
- defaultPosition
add the textStyle radius backgroundColor
init commit