Quoted By:
Why didn't Game Freak ever use the concept of having gym leaders be members of the evil team like Pokemon Adventures?
The closest thing we got to my knowledge is Malava from X and Y, but even then you don't fight her until Team Flare is disbanded.