Those are the 3 things you shouldn't do, you'll end up with a blurry, washed-out image.
Most phone cameras switch to digital zoom past 2x or 3x, which just crops and stretches the image, destroying fine resin and pistil detail.
Using the flash creates harsh glare off the trichome heads, turning the bud into a blown-out white blob and flattening all the natural texture.
While stepping back helps the lens focus, doing it just to compensate for heavy zoom defeats the purpose of getting close.
The best you can do with a phone camera is hold the phone at its minimum focusing distance in good lighting, if you have a telephoto lens, use it but don't go into optical zoom level.