79509303

Date: 2025-03-14 14:09:06
Score: 0.5
Natty:
Report link

From the documentation, follow this link and update the row with these

mainAxisAlignment: MainAxisAlignment.center, // Center the row contents and a SizedBox for some space

so it should look like this then

Row(
          mainAxisAlignment: MainAxisAlignment.center, // center  contents
          children: <Widget>[
            Text(label),
            const SizedBox(width: 8), // some spacing between text and switch
            Switch(
              value: value,
              onChanged: (bool newValue) {
                onChanged(newValue);
              },
            ),
          ],
        ),
Reasons:
  • Blacklisted phrase (1): this link
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: pumpkin