Aminah gave you good advice. Your dear little bird can learn to trust you again, but you must be trustworthy. Do not rush her, and do not give up.

I know you are upset with what you did. I do not believe striking an animal will teach it that aggression is wrong. They may stop a behavior out of fear if they are struck, or otherwise receive negative reinforcement, but you don't want that relationship with them.

I think the old adage "You'll get more flies with honey than vinegar." is very true.

Good luck