Let $f: Y \to X$ be a morphism of varieties (proper if necessary).
I read from a paper that if all the fibres of $f$ are of the same dimension then $f$ is flat. This seems skeptical for me, and I was wondering more conditions are need to have the flatness
You are right to be skeptical because the result is false.
For example if $X\subset \mathbb A^2$ is the cusp defined by $y^2=x^3$, its normalization $f:\mathbb A^1=Y\to X: t\mapsto (t^2,t^3)$ is not flat although $f$ is proper and all of its fibers consist of exactly one point and thus have the same dimension, namely $0$ .