Hi Preethi. It's more preferable to feed pets after a walk. If one wants to take a pet on walk post feeding, then it there should be a gap of more than an hour.
Preethi I have been having dogs for over 30 yrs of various breeds. Take your dog after 20 mins of food it helps stay away from unwanted curiosity and also helps put pressure so they relieve themselves