No longer compiles post Flutter 3.18.0 - api changed to ViewConfiguration to take ViewConstraints instead of Size
timmaffett opened this issue · 3 comments
Current versions of Flutter (at Channel main, 3.18.0-5.0.pre.23 and later at least) there has been a change to ViewConfiguration
to take a constraints
parameter as a ViewConstraints
object instead of a size
parameter as a Size
object.
Changing the configuration: ViewConfiguration() parameter "size: logicalSize," to
"constraints: ui.ViewConstraints(maxWidth: logicalSize.width, maxHeight: logicalSize.height)," works for me. I'll submit a PR soon unless someone else gets to it first.
Never mind, just found that someone else already has a PR in.
Hi,
We have released 2 new versions for this issue:
2.2.0 - Use this version if you are in the beta/master channel. Or using a version where ViewConfiguration
takes constraints
parameter.
2.3.0 - Use this version if you are in the Stable channel. Or using a version where ViewConfiguration
takes size
parameter.
Closing this issue. If you think it is incorrect, Please feel free to reopen this issue