One should not give dairy sweets to children within six hours of eating meat. But it is permitted to give them to a very small child who is not of understanding. As the Rashba wrote, and as is treated in Yabia Omer, the leniency is only when there is a need, not ordinary sweets.