Feat:
- Wrapper a
Materialwidget when theOKToastwidget is not wrapped withMaterial. - The min support of flutter SDK version to 3.7.0.
- Fix
Theatreconstructor and get rid ofViewfor compatibilities. (#103)
- Fix position offset do not work when
movingOnWindowChangeis false. (#100)
- Replace
context.debugDoingBuildflag 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
OKToastwidget is not wrapped correctly. - Bind
ToastFuturewithOverlayEntrymounted state.
- Deliver overlay insertion into microtask.
- Expose
constraintsandmarginforshowToastmethod. (#84)
- Support
copyWithforToastPosition. (#82) - Integrate
animationBuilderproperly. (#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:
textAlignof 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:
positionis 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