How to vertically-align M3 components

FlowPanels have a vertical_align property
If you add the label and switch inside a FlowPanel
then set the vertical_align to "middle" it should do what you want

5 Likes