You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Positioned.fromRect(
rect: Rect.fromLTRB(
(left is int) ? left.toDouble() : left,
(top is int) ? top.toDouble() : top,
(right is int) ? right.toDouble() : right,
(bottom is int) ? bottom.toDouble() : bottom,
),
child: ...
This has been working pretty decent if I stay within the same device or simulator, but if I am doing this on an iPhone 14 Pro & then switch to an SE, the widgets will be in the wrong position or off-screen.
What would be the best way to save the positioning & keep it responsive among screen sizes?
The text was updated successfully, but these errors were encountered:
I noticed within this that it saves a position, but I've had issues with getting that to work to display what I have created.
Right now I am trying to get the various bounds & use that but still having issues.
Currently, I am using this extension:
Then on the Container or SizedBox of the Custom Widget I am adding, I would set a key like so:
Saving the positionings:
When I display the UI again:
This has been working pretty decent if I stay within the same device or simulator, but if I am doing this on an iPhone 14 Pro & then switch to an SE, the widgets will be in the wrong position or off-screen.
What would be the best way to save the positioning & keep it responsive among screen sizes?
The text was updated successfully, but these errors were encountered: