I consider both correct but walking is rarely used in this context. There is some disagreement with regard to the correct expressions: It's a 20-minute walk. It's 20 minutes' walk.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.