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

Bug or feature: Snackbar同一提示多次提交会按提交队列依次duration显示 #27

Open
Sagiri-kawaii01 opened this issue May 14, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Sagiri-kawaii01
Copy link

版本:2.1-Happy 2024

复现方法:首页点击加号按钮添加图片,进入AddScreen,不做任何操作并重复点击右上角保存按钮。这时下方的 Snackbar 会出现 n * duration 次

从使用者的体验来看,重复的提示应该出现一次就够了,即便是多次触发,也应该是刷新 duration

从源码来看,com.skyd.rays.ext.SnackbarExt.kt#SnackbarHostState.showSnackbar 中是直接调用 compose 的 api,那么应该不算 bug,只是一个可优化的点

@SkyD666 SkyD666 added the enhancement New feature or request label May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants