Evolution of spiral galaxies in modified gravity II. Gas dynamics