Flat tops work perfectly (I know from experience).
I only have flat tops so I can't test a button top... but it may still work by just pushing the bottom spring down more or not screwing the cap on the entire way.
But to be safe, the answer is definitely flat.