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

放在MaterialApp外层长按输入框报错,放到里面文字下方有下划线,求修复 #32

Closed
silentchild opened this issue Jul 9, 2020 · 3 comments

Comments

@silentchild
Copy link

MaterialApp(
builder: (context, child) {
//FlutterEasyLoading放在这里解决放到外层输入框长按报错
return FlutterEasyLoading(child: child);
},

这样写会有下划线,不这样写长按输入框报错,求解决啊!!!

@mdddj
Copy link

mdddj commented Jul 18, 2020

解决方案

 builder: (BuildContext context, Widget child) {
        return Material(
          type: MaterialType.transparency,
          child: FlutterEasyLoading(
            child: child,
          ),
        );
      },

@silentchild
Copy link
Author

type: MaterialType.transparency,

好的,谢谢,不过我发现不加type: MaterialType.transparency,也可以,不知道加这个的作用是?

@nslogx
Copy link
Owner

nslogx commented Sep 16, 2020

@silentchild 新版已经修复了,原因是:Text 属于Material 风格下的组件,如果根节点不是Material相关组件,则会使用默认带黄色下划线的格式

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

3 participants