Dihedral does affect the angle of attack, but this effect is only significant at high dihedral angles.
I will try to explain this by using normal vectors in a xyz-axis system.
The positive x-direction is pointed downstream parallel to the flow, the y-axis is pointed to the right when facing the flow. This means that the z-axis points upwards.
$w$ is the normal vector of the incoming flow in positive x-direction
$$
w = \left[ {\begin{array}{*{20}{c}}
1\\
0\\
0
\end{array}} \right]
$$
$f$ is the normal vector of the flat plate. When the plate has no incidence angle w.r.t. the flow f is:
$$
f = \left[ {\begin{array}{*{20}{c}}
0\\
0\\
1
\end{array}} \right]
$$
To compute the angle of attack the following procedure is followed:
Normalisation of $f$ and $w$. Normalised vectors $f_n$ and $w_n$ are the result.
Then the angle of these two vectors is:
$$
\theta = \arccos \left( {{f_n} \cdot {w_n}} \right)
$$
And the effective angle of attack $\alpha$ is:
$$
\alpha = 90 - \theta
$$
Now I use transformation matrices on $f$ to give it a pitch $\alpha$ and dihedral $\Gamma$.
First dihedral, so rotation about the x-axis with an angle $\Gamma$ gives the following rotation matrix:
$$
\left[ {\begin{array}{*{20}{c}}
1&0&0\\
0&{\cos \left( \Gamma \right)}&{ - \sin \left( \Gamma \right)}\\
0&{\sin \left( \Gamma \right)}&{\cos \left( \Gamma \right)}
\end{array}} \right] = {\Gamma _{rot}}
$$
After applying the dihedral a pitch angle is applied. This is equal to rotation about the y-axis:
$$
\left[ {\begin{array}{*{20}{c}}
{\cos \left( \alpha \right)}&0&{\sin \left( \alpha \right)}\\
0&1&0\\
{ - \sin \left( \alpha \right)}&0&{\cos \left( \alpha \right)}
\end{array}} \right] = {\alpha _{rot}}
$$
Working this out with a dihedral of 45 degrees and a pitch of 30 degrees:
Dihedral:
$$
f' = \left[ {\begin{array}{*{20}{c}}
0\\
0\\
1
\end{array}} \right] \cdot \left[ {\begin{array}{*{20}{c}}
1&0&0\\
0&{\cos \left( {45} \right)}&{ - \sin \left( {45} \right)}\\
0&{\sin \left( {45} \right)}&{\cos \left( {45} \right)}
\end{array}} \right] = \left[ {\begin{array}{*{20}{c}}
0\\
{ - 0.70711}\\
{0.70711}
\end{array}} \right]
$$
Angle of attack:
$$
f'' = \left[ {\begin{array}{*{20}{c}}
0\\
{ - 0.70711}\\
{0.70711}
\end{array}} \right] \cdot \left[ {\begin{array}{*{20}{c}}
{\cos \left( {30} \right)}&0&{\sin \left( {30} \right)}\\
0&1&0\\
{ - \sin \left( {30} \right)}&0&{\cos \left( {30} \right)}
\end{array}} \right] = \left[ {\begin{array}{*{20}{c}}
{0.35355}\\
{ - 0.70711}\\
{0.61237}
\end{array}} \right]
$$
Both $f''$ and $w$ are already normalised, so the (effective) angle of attack is:
$$
\alpha = {90^o} - \arccos \left( {\left[ {\begin{array}{*{20}{c}}
{0.35355}\\
{ - 0.70711}\\
{0.61237}
\end{array}} \right] \cdot \left[ {\begin{array}{*{20}{c}}
1\\
0\\
0
\end{array}} \right]} \right) = {90^o} - 69.295 \approx {21^o}
$$
So the effective angle of attack is smaller than the pitch angle given to the plate due to the dihedral