title: Flutter passing list of strings in CupertinoPicker widget using loops
body: <p>I was trying to pass a list inside CupertinoPicker using loops  but I couldn't figure it </p>
  
  <p><a href="https://i.stack.imgur.com/g0zuI.png" rel="nofollow noreferrer">this image contains the function I was trying to build </a> </p>
  
  <pre><code> const List&lt;String&gt; currenciesList = [
            'AUD',
            'BRL',
            'CAD',
            'CNY',
            'EUR',
            'GBP',
            'HKD',
            'IDR',
            'ILS',
            'INR',
            'JPY',
            'MXN',
            'NOK',
          ];        
  
      Container(
              height: 150.0,
              alignment: Alignment.center,
              padding: EdgeInsets.only(bottom: 30.0),
              color: Colors.lightBlue,
              child:CupertinoPicker(
                  backgroundColor: Colors.lightBlue,
                  itemExtent: 32.0,
                  onSelectedItemChanged: (selectedIndex){
                    print(selectedIndex);
                  }, children:[
                Text('USD',style: whiteColor ),
                Text('EUR' , style: whiteColor),
                Text('GDP', style:whiteColor),
              ]
              ),
            ),
  </code></pre>