【发布时间】:2020-03-17 13:02:48
【问题描述】:
我们在 IOS 中遇到了一个问题,我们测试了来自https://pub.dev/ 的许多 webview 包(如https://pub.dev/packages/webview_flutter 和https://pub.dev/packages/flutter_webview_plugin 和https://pub.dev/packages/flutter_inappbrowser),所有解决方案都以相同的结果结束。 当 innapp 网站打开时,它可以完美加载,但是当您与输入交互时,键盘似乎没有出现,它出现在所有页面的所有输入中。
提前致谢!
错误日志输出为:
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)
(
"<NSAutoresizingMaskLayoutConstraint:0x6040004826c0 h=-&- v=-&- UIToolbar:0x7fcec747c950.width == _UIInputViewContent:0x7fcec74aede0.width (active)>",
"<NSAutoresizingMaskLayoutConstraint:0x600000487440 h=--& v=--& _UIInputViewContent:0x7fcec74aede0.width == 0 (active)>",
"<NSLayoutConstraint:0x6000004839d0 H:|-(0)-[_UIButtonBarStackView:0x7fcec74bfd40] (active, names: '|':_UIToolbarContentView:0x7fcec743d460 )>",
"<NSLayoutConstraint:0x600000483a70 _UIButtonBarStackView:0x7fcec74bfd40.trailing == _UIToolbarContentView:0x7fcec743d460.trailing + 8 (active)>",
"<NSLayoutConstraint:0x6000004845b0 _UIToolbarContentView:0x7fcec743d460.trailing == UIToolbar:0x7fcec747c950.trailing (active)>",
"<NSLayoutConstraint:0x60000009f1d0 H:|-(0)-[_UIToolbarContentView:0x7fcec743d460] (active, names: '|':UIToolbar:0x7fcec747c950 )>",
"<NSLayoutConstraint:0x604000480730 H:|-(>=5)-[_UIModernBarButton:0x7fcec75b34b0] (active, names: '|':_UIButtonBarButton:0x7fcec75b2e40 )>",
"<NSLayoutConstraint:0x604000480780 H:[_UIModernBarButton:0x7fcec75b34b0]-(>=5)-| (active, names: '|':_UIButtonBarButton:0x7fcec75b2e40 )>",
"<NSLayoutConstraint:0x604000481310 H:|-(8)-[_UIModernBarButton:0x7fcec75b4060'Done'] (active, names: '|':_UIButtonBarButton:0x7fcec75b39d0 )>",
"<NSLayoutConstraint:0x604000481360 H:[_UIModernBarButton:0x7fcec75b4060'Done']-(0)-| (active, names: '|':_UIButtonBarButton:0x7fcec75b39d0 )>",
【问题讨论】: