To dream of giving flattery represents behavior that is controlling others with lies that feel good. Falsely appealing to the ego or vanity to keep someone on the same line of thinking as you. It may also reflect someone you are pretending to nice to get to through something. You may be trying to use someone.
To notice someone giving you flattery may reflect your feeling about someone trying to use you. It may also reflect your own vanity.