Proposition 4.3.9 in Liu says: Let $Y$ be a Dedeking scheme. Let $f:X\to Y$ be a morphism with $X$ reduced. Then $f$ is flat if and only if every irreducible component of $X$ dominates $Y$.
I don't understand details in the proof: the proof is going so
Suppose every irreducible component of $X$ dominates $Y$. Let $x\in X$ and $y=f(x)$
First the case $y$ generic point of $Y$ we deduced $\mathcal{O}_{X,x}$ flat over $\mathcal{O}_{Y,y}$: ok
Then suppose $y$ closed and $\pi$ uniformising parameter for $\mathcal{O}_{Y,y}$ (Discret Valuation Ring because $Y$ Dedeking).
Then $\pi$ does not belong to any minimal prime ideal of $\mathcal{O}_{X,x}$, that is with notation $f^\sharp_x:\mathcal{O}_{Y,y}\to\mathcal{O}_{X,x}$, $f^\sharp_x(\pi)$ does not belong to any prime ideal of $\mathcal{O}_{X,x}$: I don't understand why (question °1)
As $X$ reduced then $\pi$ is not a zero divisor, then $\mathcal{O}_{X,x}$ flat over $\mathcal{O}_{Y,y}$: ok
Conclusion: ok (but I don't see the necessity of the generic point case... maybe just a remark)
The converse: one know from a preceeding lemma that if $f:X\to Y$ is flat, $Y$ irreducible and $X$ has only a finite number of irreducible components, then every one of them dominates $Y$.
Question n°2: But I don't see how we can use this lemma because we don't have the finitness of number of irreducible component for $X$ which is only reduced.