Thanks for writing your query to us.
As you had mentioned that you had stroke
at age of 29 years, I assume that your are being investigated by your doctor for having stroke as such young age.
Since you are gaining weight along with sweating since last two years there is possibility that your have a overactive thyroid
. kindly get your thyroid profile that will help to assess the problem.
Wish you good health.