Some teachers like them, others don't. In general, I would avoid giving flowers. It's not that flowers are bad. It can be an okay gift, but you'll need to make sure they're in a vase, and there's a place for them in the classroom. Another alternative is to go with a fake plant because some teachers may not want to deal with the hassle of a real one.