解:设全班有$x$人,每包有$y$颗巧克力,
根据题意,得$\begin {cases}20x + 80 = 5y&①\\7\leqslant 3y - 14(x - 1)<14&②\end {cases}$
由①得:$y = 4x + 16$
$ $将$y = 4x + 16$代入$②$得:$7\leqslant 3(4x + 16)-14(x - 1)<14$
∴$\begin {cases}3(4x + 16)-14(x - 1)\geqslant 7\\3(4x + 16)-14(x - 1)<14\end {cases},$即$\begin {cases}{-2x+62<14}\\{-2x+62≥7}\end {cases}$
解得$24<x\leqslant 27.5$
∵$x$是正整数,∴$x$可以为$25,$$26,$$27$
∴全班至少有$25$人,至多有$27$人。