Is it possible to obtain ice in superflat?
If your world isn't in either a cold biome, or extreme hills biome, then you can only obtain packed and blue ice as trades from the wandering trader and normal ice is unobtainable.
Additionally, frosted ice never melts in low light levels, so it's possible to generate it where you need it. This was used, for example, for building ice highways.