bot_toast icon indicating copy to clipboard operation
bot_toast copied to clipboard

桌面端显示的Toast可以移动

Open onism0106 opened this issue 9 months ago • 3 comments

WeChatc5e6a288c37b0a7afb549394c427b4f2 显示Toast时,鼠标向上滑动时,这个Toast也可以跟着移动

onism0106 avatar Apr 28 '24 10:04 onism0106

可以的请提供一个可复现的demo

MMMzq avatar Apr 30 '24 05:04 MMMzq

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

onism0106 avatar May 06 '24 01:05 onism0106

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

拖拽也可以复现

onism0106 avatar May 06 '24 01:05 onism0106

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.

stale[bot] avatar Aug 11 '24 05:08 stale[bot]