#flutter
#трепетать
Вопрос:
Я создал PDF-файл и успешно сохранил его на устройстве. Теперь я хотел бы просмотреть его.
У меня есть файл open_file.установите плагин dart, и вот фрагмент моего кода
String path =await PdfBuilder.save(await pdf, getFileName()); await OpenFile.open(path);
Я могу просмотреть PDF-файл, но получаю следующее сообщение
[LayoutConstraints] Unable to simultaneously satisfy constraints. 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) ( "lt;NSAutoresizingMaskLayoutConstraint:0x282d9c0f0 h=-amp;- v=--amp; UINavigationBar:0x145fbe2b0.minY == 0 (active, names: '|':UILayoutContainerView:0x145fbdd60 )gt;", "lt;NSAutoresizingMaskLayoutConstraint:0x282d9db30 h=-amp;- v=--amp; UINavigationBar:0x145fbe2b0.height == 44 (active)gt;", "lt;NSLayoutConstraint:0x282d94960 V:[UINavigationBar:0x145fbe2b0]-(0)-[UIFocusContainerGuide:0x2831e9d10'UINavigationControllerContentFocusContainerGuide'] (active)gt;", "lt;NSLayoutConstraint:0x282d95720 UIFocusContainerGuide:0x2831e9d10'UINavigationControllerContentFocusContainerGuide'.bottom == UILayoutContainerView:0x145fbdd60.bottom (active)gt;", "lt;NSLayoutConstraint:0x282d959a0 V:|-(0)-[UILayoutContainerView:0x145fbdd60] (active, names: QLPreviewControllerView:0x14a942120, '|':QLPreviewControllerView:0x14a942120 )gt;", "lt;NSLayoutConstraint:0x282d954a0 V:[UILayoutContainerView:0x145fbdd60]-(0)-| (active, names: QLPreviewControllerView:0x14a942120, '|':QLPreviewControllerView:0x14a942120 )gt;", "lt;NSLayoutConstraint:0x282d9cc80 'UIView-Encapsulated-Layout-Height' QLPreviewControllerView.height == 0 (active, names: QLPreviewControllerView:0x14a942120 )gt;" ) Will attempt to recover by breaking constraint lt;NSLayoutConstraint:0x282d94960 V:[UINavigationBar:0x145fbe2b0]-(0)-[UIFocusContainerGuide:0x2831e9d10'UINavigationControllerContentFocusContainerGuide'] (active)gt; Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger. The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in lt;UIKitCore/UIView.hgt; may also be helpful.
Не уверен, как отладить/устранить эту проблему.
Спасибо за вашу помощь