Fungus Gnats like to lay their eggs on moist soil with many organic matters. To keep surface soil dry, I exposed them to the sun and try bottom watering.
Observation: the soil might is still wet with bottom watering, unless I stop watering. This might stop gnats from laying eggs, but it has no effects on little gnats already in the pot.