title: Variants and AssetImage in flutter not working
body: <p><a href="https://i.stack.imgur.com/0yY87.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0yY87.png" alt=""></a></p>
  
  <p>This is my folder structure for the asset my_earth.jpg. This is the code I have used to get the asset</p>
  
  <pre><code>DecoratedBox(
                  decoration: BoxDecoration(
                    image: DecorationImage(
                      image:  AssetImage('assets/image/my_earth.jpg'),
                    ),
                  ),
                )
  </code></pre>
  
  <p>This is my asset declaration in pubspec.yaml</p>
  
  <p>assets:
      - assets/image/ 
      - assets/video/</p>
  
  <p>Q: Only the main asset is being displayed and not the variants. The main asset has a size of 10x10 and when I ran it in the iPad Simulator , it gave me 10x10. I thought it might select the variants, ( the sizes are as follows : 16x16 --> 1.0x, 20x20 ---> 2.0x, 29x29---> 3.0x etc.). When I used the original 1024x1024, it showed me 1024x1024. I am perplexed as to how utilise this Asset Image Loader and variants for multi device support, ( as ios requires 1x ( deprecated as almost all devices are now Retina supported), 2x , 3x while android requires the 4 formats of images distributed in dbpi folders.</p>
  
  <p>Please assist me to realise what am I doing wrong?</p>