Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Is it possible to Repeat Icons in flutter like ImageRepeat

I am wondering if it is possible to repeat an actual icon widget like the image I have attached.

Currently getting this result using ImageRepeat but would like to be able to use and actual icon so it can be modular and the icon can change.

( the repeating image can currently change but I don’t want to have to create 100 images of icons. )

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Current Solution:

SizedBox.expand(
 child: Image.asset(
  _backGroundImage,
  repeat: ImageRepeat.repeat,
)), 

Desired Result using ImageRepeat.repeat

>Solution :

try Wrap:

Container(
        width: MediaQuery.of(context).size.width,
        height: MediaQuery.of(context).size.height,
        color: Colors.orange,
        child: Wrap(
          children: List<Widget>.generate(2000, (int index) {
            return Icon(Icons.add);
          }),
        ),
      ),
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading