Prior food level and temperature will affect age (and to a lesser extent size) at sexual maturity. Better fed fish will in general reach it earlier and at a larger size than poorly fed fish.
In the past I parametrized a Dynamic Energy Budget (DEB) model to zebrafish, Danio rerio (but this has been done for other species) and quantified the relationship expressed above for that species: i.e. range of possible ages and sizes at sexual maturity and how this relates to prior food history and temperature.
In the DEB framework that I used, the assumption is that "before sexual maturity the individual is developing, after that it no longer develops but allocates to reproduction".
In this framework, growth ( increase in length) is not the same thing as development, so after being able to produce offspring the individual can still grow.
Now the question I never fully resolved, is what exactly is sexual maturity and how to determine it with precision. It's not because the fish doesn't spawn or have mature oocytes that it is not sexually mature.
I was working under super controlled feeding conditions with a well studied model organism; how do we deal with less well known species and/or field data?