We teach Touch & Go's retracting flap first (and making sure that they are moving) then apply full power. Once airborne readjust the trim once at the required climb speed. Reason being, in the 172 with Electric flaps they take time to retract unlike a lever operated flap system which is basically instant.