Me ha pasado encontrarme con un problema desarrollando una aplicación móvil para un amigo en el cual necesitaba crear filas que contuvieran los meses del año de cuatro en cuatro.
Esto era para crear una cuadrícula con los meses del año de manera que en la aplicación pudieran seleccionar cada mes en particular e ir visualizando las ganancias a lo largo de ese mes.
I ran into a problem while developing a mobile app for a friend in which I needed to create rows containing the months of the year, four at a time. This was to create a grid with the months of the year so that in the app they could select each specific month and view their earnings throughout that month.
https://images.hive.blog/DQmYDzY4to47Jti1odffhP7u5yDwTGiw2aLgbPi5ueVw63N/Screenshot_2025-08-08-18-44-36-942_host.exp.exponent.jpg
Consistía más en una interfaz visual que lo funcional pero en este tipo de marcos de trabajos no hay mucha libertad de diseño sino que hay que ingeniárselas por lo tanto cree una función que permite elegir cuántos meses se desean mostrar por fila y desde qué índice inicial hasta qué índice final.
It was more of a visual interface than a functional one, but in this type of framework there isn't much design freedom; you have to be creative. So I created a function that allows you to choose how many months you want to display per row and from what starting index to what ending index.
https://images.hive.blog/DQmbHwdh5MoMBP6dDENEcgGh7uMSZiveUr6xDHMCj7mtoyw/academia.jpg
Los geniales que funcionó perfectamente me creó tres filas con cuatro meses y a medida que se va seleccionando alguno de esos meses se puede ir viendo las ganancias que se tuvieron en ese mes.
The great thing that worked perfectly created three rows with four months and as you select one of those months you can see the profits you had in that month.
https://images.hive.blog/DQmQrjz64HVpxftEEUyzfhUMiJy56iEta46QFFPhcyEq5fX/academia1.jpg
Todo gracias a un método de raíz y la ubicación de cada uno de esos meses dentro de un array general.
All thanks to a root method and the location of each of those months within a general array.