Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

桌面端显示的Toast可以移动 #169

Open
onism0106 opened this issue Apr 28, 2024 · 3 comments
Open

桌面端显示的Toast可以移动 #169

onism0106 opened this issue Apr 28, 2024 · 3 comments

Comments

@onism0106
Copy link

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

@MMMzq
Copy link
Owner

MMMzq commented Apr 30, 2024

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

@onism0106
Copy link
Author

onism0106 commented May 6, 2024

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
Copy link
Author

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

拖拽也可以复现

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants