adding pub spec constraints