How i hide shadow effect in error message?

I wrap material widget for elevation.But it looks ugly when error shown.