Can I ever get a mortgage again?
You are eligible for an FHA after chapter 7 two years after the discharge. During those 2 years, you must have kept your credit clean and avoid taking on additional debt.
If you are considering filing for bankruptcy, I suggest consulting with an experienced bankruptcy attorney.