Duality and spontaneously broken supergravity in flat backgrounds