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

实现Modifier.waveLoading扩展 #1

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

qdsfdhvh
Copy link

@qdsfdhvh qdsfdhvh commented Sep 22, 2021

基本使用:

Box(
    modifier = Modifier
        .weight(1f)
        .waveLoading(
            backDrawType = DrawType.DrawImage,
            progress = progress,
            velocity = velocity,
            amplitude = amplitude,
        ),
) {
}

问题:

  • 1.边缘有点瑕疵,我尝试添加了isAntiAlias=true不行,暂时不知道怎么解决。
  • 2.伪适配了BackDrawType.None,未实现真正的透明背景。
  • 3.使用了两次drawContent(),不适合较为复杂的Layout。
1632303658086012.mp4

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

Successfully merging this pull request may close these issues.

None yet

1 participant