Flat-band ratio and quantum metric in the superconductivity of modified Lieb lattices