In the past, I dealt with them by giving them the most mundane, minute tasks ever without cluing them in to what the rest of us were doing. If I did the work alone, I'd never bother to tell the rest of the group the details. An example, two girls in a group of mine never did work and didn't show up to class. So I and the other person who did work presented and one of the two girls, had her mouth agape when we rolled out the presentation without her. She just sat back and look stunned and pissed. When the professor asked where the rest of the group was, I gave an "I dunno lol" look. I'm guessing she texted her friend because she bolted in at the last five minutes.
IIRC, they got partial credit on it because while we proved to the professor that they didn't do shit nor showed a desire for it, the professor didn't like how we went about the presentation if a group member was in the audience while presenting.
Reason # 3454534653656 why college is bullshit and a joke.