FC Barcelona have indeed held talks with Angel Di Maria, the player only wants a 1-year contract.

Barcelona have been offered the chance to sign Ángel Di María on a free, but he is only viewed as an option this summer if they fail to sign Raphinha.
The player moves to Barcelona is possible. The player prefers a move to Spain and the sporting area is yet to rule out his signing as his experience, versatility and performances have impressed the club. Juventus haven’t given up.
Barcelona have already made direct contacts to find out the feasibility of this operation.