During vegetative growth the plants need lots of N (nitrogen). They also need a fair amount of P (phosphorus) and K (potassium), 20-10-10, or 30-15-15, or something similar, with trace elements should do it.
During flowering the plants need more P (phosphorus) and more K (potassium) than they did during vegetative growth. They need some N (nitrogen) but not as much as they did during vegetative growth. They also need calcium.
I would not use the same ratio for vegetative and flowering.. but you can try it.. this is a good rule of thumb. (it wont due any harm, but it's not "ideal")
If you used:
--- something like 20-10-10 for vegetative growth, then try using 10-20-20 (or similar) for flowering.
--- something like 30-15-15 for vegetative growth, then try using 15-30-30 (or similar) for flowering.