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

键盘弹起的时候,文字颜色会变暗 #2

Open
saviourdog opened this issue Nov 2, 2019 · 19 comments
Open

键盘弹起的时候,文字颜色会变暗 #2

saviourdog opened this issue Nov 2, 2019 · 19 comments

Comments

@saviourdog
Copy link

No description provided.

@saviourdog
Copy link
Author

class WaveText extends StatelessWidget { final String text; final int delay; final String split; WaveText(this.text,{this.delay=0,this.split=''}); @override Widget build(BuildContext context) { List<Widget> fonts = []; text.split(split).asMap().forEach((index, item) { fonts.add(AnimatorSet( animationType: AnimationType.once, child: Text(item), animatorSet: [ Delay(duration: index * 50+delay), Serial(duration: 200, serialList: [ TY(from: 28, to: -14, curve: Curves.ease), O(from: 0, to: 0.6, curve: Curves.linear) ]), Serial(duration: 150, serialList: [ TY(from: -14, to: 0, curve: Curves.ease), O(from: 0.6, to: 1, curve: Curves.linear) ]), ], )); }); return Wrap(children: fonts); } }

@saviourdog
Copy link
Author

巨佬!

@AndroidHensen
Copy link
Collaborator

我刚刚在本地测试 并没有出现这个问题呀,是不是跟特定机型有关?写个text的style把颜色写一下 试试

@saviourdog
Copy link
Author

加了颜色也不行

@saviourdog
Copy link
Author

我把这个页面单独抽出来了,巨佬看下,https://github.com/saviourdog/test

@saviourdog
Copy link
Author

巨佬!

@AndroidHensen
Copy link
Collaborator

是动画的问题,不过现在在忙其他事情,能否先用autofocus先用着

@saviourdog
Copy link
Author

是动画的问题,不过现在在忙其他事情,能否先用autofocu
好的!等巨佬修复~

@saviourdog
Copy link
Author

0.0

@saviourdog
Copy link
Author

@saviourdog
Copy link
Author

不打算修了吗,一直等着巨佬呢0.0

@AndroidHensen
Copy link
Collaborator

在赶项目,可能没多少时间,flutter搞的少了

@AndroidHensen
Copy link
Collaborator

我找找其他人看看有没有空的

@saviourdog
Copy link
Author

在赶项目,可能没多少时间,flutter搞的少了

谢谢!很忙的话我就不催啦~

@AndroidHensen
Copy link
Collaborator

你有空吗,可以帮忙看看,可以提交给request,我这边问到了修复思路

@saviourdog
Copy link
Author

啥思路啊,不行我找其它大佬帮忙

@AndroidHensen
Copy link
Collaborator

应该要用到 animation
然后通过 路径 跟渐变解决

@saviourdog
Copy link
Author

这。。太难了啊,唉

@saviourdog
Copy link
Author

0.0

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