79585143

Date: 2025-04-21 18:50:05
Score: 0.5
Natty:
Report link

you need to wrap your Column with an IntrinsicWidth

enter image description here

example (try to run this):

return IntrinsicWidth(
  child: Column(
    mainAxisAlignment: MainAxisAlignment.center,
    crossAxisAlignment: CrossAxisAlignment.start,
    children: [
      Row(
        children: [
          const Spacer(),
          Container(
            color: Colors.white,
            width: 20,
            height: 40,
          ),
        ],
      ),
      Container(
        color: Colors.orange,
        width: 50,
        height: 40,
      ),
      Container(
        color: Colors.white,
        width: 100,
        height: 20,
      ),
    ],
  ),
);
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Shlomo Cardoso