A rioter who repeatedly attacked police while draped in an England flag during a night of disorder in Sunderland has been jailed.