fluttercommunity / fluttercommunity/flutter_webview_plugin
Constraint error when clicking textbox inside webview
- 主要语言
- Java
- 星标
- 1.5k
- 派生
- 938
- PR 合并指标
- 30 天内没有已合并 PR
描述
final FlutterWebviewPlugin _webView = new FlutterWebviewPlugin();
If I call "_webView.launch(" it opens my company's login page, but if I click on the email textbox it displays this message on the terminal.
The app works fine, it just has that behavior every time you try to access a textbox.
For a more detailed help message, press "h". To detach, press "d"; to quit,
press "q".
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"",
"",
"",
"",
"=8)-| (active, names: '|':_UIButtonBarButton:0x7fa98ed4fc80 )>",
"=5)-[_UIModernBarButton:0x7fa98ed52c20] (active, names: '|':_UIButtonBarButton:0x7fa98ed525b0 )>",
"=5)-| (active, names: '|':_UIButtonBarButton:0x7fa98ed525b0 )>",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
""
)
Will attempt to recover by breaking constraint
=8)-| (active, names: '|':_UIButtonBarButton:0x7fa98ed4fc80 )>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in may also be helpful.
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"",
"",
"",
"=5)-[_UIModernBarButton:0x7fa98ed52c20] (active, names: '|':_UIButtonBarButton:0x7fa98ed525b0 )>",
"=5)-| (active, names: '|':_UIButtonBarButton:0x7fa98ed525b0 )>",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
""
)
Will attempt to recover by breaking constraint
=5)-| (active, names: '|':_UIButtonBarButton:0x7fa98ed525b0 )>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in may also be helpful.
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
""
)
Will attempt to recover by breaking constraint
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in may also be helpful.
贡献指南
这个仓库没有索引到贡献指南
调研方向
首先,根据报告的 FlutterWebviewPlugin _webView.launch 调用重现该问题,并在 iOS 上点击电子邮件文本框。使用报告中的 UIKit 约束输出和 UIViewAlertForUnsatisfiableConstraints 调试指南,追踪 toolbar 布局警告的来源。完成的标准是:文本框可以获得焦点,且不再重复出现约束错误。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- dart, ios
- 领域
- mobile-dev
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100