Catalysis of the transfer of glucose-6-phosphate from one side of the membrane to the other. Glucose-6-phosphate is a monophosphorylated derivative of glucose with the phosphate group attached to C-6.