If we ignore the factor of rotation, according to the law of universal gravitation, the acceleration of gravity is directly proportional to the mass of the planet and inversely proportional to the square of the radius of the planet. Therefore, the acceleration of gravity is essentially a binary function about the mass and radius of the planet. Whether there is a suitable gravitational acceleration on the planet surface depends on the ratio of its mass to the square of its radius. As long as the proportion is appropriate, the mass and volume are slightly larger and smaller, which will not have much influence on the acceleration of gravity. This is another constraint, but only if the mass does not exceed the gas planet.
At present, the earth-like planets discovered are super-earths, which are several times more massive than the earth, and then will be ice giants and gas planets. None of these planets has a solid surface, so there is no human habitation. But there is one exception, and that is Dyson sphere. If there is a planet as big as the sun that can live in, it must live in Dyson circle. Such a civilization also exists in theory. Then human beings live on the surface of Dyson sphere, and the inside is a device for collecting energy, so there is no sun in the sky.