I've had some fungus gnat problems in the past, but by adding more springtails and letting the top layer of substrate dry out, they were easy to get rid of. I've used Katchy traps which work very well, they are expensive, but they work very well. The best way to prevent those problems is to sterilize everything before adding it to the enclosure (including plants, substrate, and decor).