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
itemBuilder: (context, pageIndex, storyIndex) {
return Align(
child: Padding(
padding: EdgeInsets.only(
left: (left is int) ? left.toDouble() : left,
top: (top is int) ? top.toDouble() : top,
right: (right is int) ? right.toDouble() : right,
bottom: (bottom is int) ? bottom.toDouble() : bottom,
),
child: 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: Transform.rotate(
angle: (rotation is int) ? rotation.toDouble() : rotation,
child: Transform.scale(
scale: (scale is int) ? scale.toDouble() : scale,
child: ....
Some of the issues I am facing include:
• Removing Align causes overall issues with viewing any of the widgets.
• If I am trying to view multiple widgets at once, most of this logic is ignored & all the widgets are placed in the center of the screen.
The text was updated successfully, but these errors were encountered:
What is the best approach for having widgets appear responsively across devices as well as having multiple widgets with gestures at once?
I'm trying something like this:
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:
Some of the issues I am facing include:
• Removing Align causes overall issues with viewing any of the widgets.
• If I am trying to view multiple widgets at once, most of this logic is ignored & all the widgets are placed in the center of the screen.
The text was updated successfully, but these errors were encountered: