During diffraction of light, photon should be obsorbed by atoms in the edge of the material and re emmited. Even then, why it is not dependent on the material. Why?
The fact that it does not depend on the material is just a hypothesis. In standard diffraction theories, one supposes that the edge material is fully absorbing, which is of course not always the case in practice. If the material is partially transparent, this will of course have an impact on the transmitted pattern.
The picture is misleading. Each point of space generates a secondary wave. The process with absorption and re-emission is possible but it is not coherent, thus no diffraction happens this way. Diffraction,, also called scattering does not involve absorption.
Diffraction process is possible only in coherent wave. Scattered light from the atoms of the edge will be coherent and can produce diffraction. But after absorption and subsequent emission will not provide a coherent wave. So in this situation diffraction is not possible.This is the reason why diffracted light does not depend on material.