Phase transition dynamics in one-dimensional halide perovskite crystals