A flow cell includes a support and a heteropolymer attached to the support. The heteropolymer includes an acrylamide monomer including an attachment group to react with a functional group attached to a primer, and a monomer including a stimuli-responsive functional group. The monomer including the stimuli-responsive functional group may be pH-responsive, temperature-responsive, saccharide-responsive, nucleophile-responsive, and/or salt-responsive.