The value and the change of the optical gap depend on many parameters; material state (amorphous, poly crystalline and crystalline), type of materials (organic or inorganic), materials form (liquid, thin film, powder or bulk), preparation method, type of container, thermal history, aging,.....e.t.c.
it is better to specify the material otherwise the question becomes general.