bot_toast
bot_toast copied to clipboard
桌面端显示的Toast可以移动
显示Toast时,鼠标向上滑动时,这个Toast也可以跟着移动
可以的请提供一个可复现的demo
ElevatedButton(
onPressed: () {
BotToast.showCustomNotification(
align: const Alignment(0, 0.8),
animationDuration: Duration.zero,
animationReverseDuration: Duration.zero,
toastBuilder: (cancelFunc) {
return Container(
width: 100,
height: 100,
alignment: Alignment.center,
color: Colors.red,
child: Text("Toast"),
);
},
);
},
child: Text("Toast"),
),
上面的demo的代码,可以复现,在Mac平台上,使用Magic Mouse,上下左面扫动(不是拖拽),这个Toast可以跟随移动。 尝试添加IgnorePointer并不生效。如果特性就是这样的话,有没有方法可以禁用掉此特性?如果不是的话,可能是个bug
ElevatedButton( onPressed: () { BotToast.showCustomNotification( align: const Alignment(0, 0.8), animationDuration: Duration.zero, animationReverseDuration: Duration.zero, toastBuilder: (cancelFunc) { return Container( width: 100, height: 100, alignment: Alignment.center, color: Colors.red, child: Text("Toast"), ); }, ); }, child: Text("Toast"), ),
上面的demo的代码,可以复现,在Mac平台上,使用Magic Mouse,上下左面扫动(不是拖拽),这个Toast可以跟随移动。 尝试添加IgnorePointer并不生效。如果特性就是这样的话,有没有方法可以禁用掉此特性?如果不是的话,可能是个bug
拖拽也可以复现
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.