FlutterSwitch
FlutterSwitch copied to clipboard
Reduce padding between toggle and edges to 0
I am trying to create a switch like in this image:

However, I cannot find a way to reduce the distance between the toggle and the edges to 0.
It ends up looking like this:

It would be nice if there was a setting that allows to remove this little bit of padding.
I have already looked at the code and by subtracting 9 from the Container width on line 382 I get the following:

This is certainly better, but the 9 is hardcoded for my specific toggle size.
Hei Perondas, you can set padding:0 to get the desired output
It solved the issue. Maybe we need to add this info to documentation. Thanks.