flutter_oktoast
flutter_oktoast copied to clipboard
Toast library for Flutter.
``` var w = WillPopScope( child: Listener( behavior: HitTestBehavior.opaque, child: Center( child: Container( decoration: BoxDecoration( borderRadius: BorderRadius.circular(5), color: Colors.black.withOpacity(0.7), ), padding: const EdgeInsets.all(20), child: CircularProgressIndicator( valueColor: AlwaysStoppedAnimation(Colors.white), )), ), ),...
Dear author, Thank you for developing this useful package. It helps me a lot. I feel that it can add a function that if there are more than one toast...
在iOS弹出toast,点击输入框弹出键盘导致toast上移,如何解决,始终保持toast在屏幕居中。
比如居中显示在一个 Container 中
I saw that this attribute exists, but it can only be controlled globally. Would it be better if it could be controlled locally?
添加全屏遮罩有问题,通常情况下是正常的,但是如果在**键盘弹出时**`showToastWidget`,展示范围其实只是**除去键盘的范围**,在dismiss toast之前收起键盘的话,就能看到遮罩高度扩展到键盘底部的动画 ```dart static ToastFuture showLoadingToast() { return showToastWidget( Container( color: Colors.black.withOpacity(0.5), child: Center(child: Text('text')), ), duration: 60.seconds, handleTouch: true, dismissOtherToast: true, position: ToastPosition.center, ); } ``` 视频: https://github.com/user-attachments/assets/f0f60bed-c689-4059-93a4-bfad38c347ee
Hi, there are some memory issues detected by `leak_tracking` when using the package. ``` onLeaks: {totals: {notDisposed: 4, notGCed: 0, gcedLate: 7}, time: 1751245242208} flutter: leak_tracker: 11 memory leak(s): not...