I understand the one-form symmetry of $U(1)$ gauge theories as related to the conservation of magnetic and electric flux, given by integration of two-form electromagnetic field tensor and its dual, respectively. You don't need to consider quantum field theory to see this conservation law. The magnetic flux conservation (in the absence of monopoles) is even seen without considering the dynamics.
In non-Abelian gauge theories you can also define something like a gauge invariant flux using a closed Wilson line or 't Hooft line. This can take any value in the non-Abelian group. But it is said that the one-form symmetry is only associated to the discrete Abelian center of the group.
How do I see that you can only define a conserved flux for the center of the group (preferably classically, or in terms of lattice gauge configurations)?