Flat feet are typically caused from weak tib anterior. Which then leads to shin splits.
Shoes are just one culprit. Weak posture is another. I have had ppl permanently rid themselves of shin pain in as little as two wks by working on lower leg posture imbalances and also getting neutral shoes.