In TX, that’s a Type C Misdemeanor (theft of under $20) with no jail time possible but a fine of as much as $500, more likely $200. But the resisting arrest complicates things.
If someone has to steal a $1.29 pastry, how do they pay back a $500 fine?