title: E/flutter (20289): RangeError (end): Invalid value: Not in range 55277..58814, inclusive: 59396
body: <pre><code>  List&lt;Widget&gt; ListMyWidgets(ticketGroups) {
      List&lt;Widget&gt; list = new List();
  
  list.add(
  
    new CupertinoNavigationBar(
  
      backgroundColor: Colors.blue,
     leading:
       //children: &lt;Widget&gt;[
         new Padding(
           padding: new EdgeInsets.all(8.0),
           child: new Text(ticketGroups[0]['ticket_name'],style: const TextStyle(fontSize: 20.0, fontFamily: 'Poppins',color: Colors.white)),
         ),
         trailing: new Padding(
             padding: new EdgeInsets.all(8.0),
             child: new Text('${ticketGroups.length}', style: const TextStyle(fontSize: 20.0, fontFamily: 'Poppins',color: Colors.white))
         ),
  
    )
  
  );
  
      for (int i = 0 ; i &lt; ticketGroups.length; i++) {
  
  
  list.add(
  
  
  new GestureDetector(
  //  onTap: _try(ticketGroups[i]),
  onTap: _try(ticketGroups[i]),
    //onTap: _try(1),
    // ticketGroups[i]
    child:
  
  
    new Card(
  
        child: new Row(
          mainAxisAlignment: MainAxisAlignment.spaceBetween,
          children: &lt;Widget&gt;[
  
            new Padding(
              padding: new EdgeInsets.all(8.0),
              child: new Text(ticketGroups[0]['ticket_name'],style: const TextStyle(fontSize: 15.0, fontFamily: 'Poppins')),
            ),
            new Padding(
                padding: new EdgeInsets.all(8.0),
                child:  new Text(ticketGroups[i]["used"].toString(), style: const TextStyle(fontSize: 15.0, fontFamily: 'Poppins'))
            )
  
          ],
        ),
      )
  
    ),
  );
  
      }
      return list;
    }
  </code></pre>
  
  <p>I do not know the reason why I get this error, is quiet hard to find out where exactly the error is since, does not tell me the line.
  However I believe would be useful to post this snipped part of my code, as I am pretty sure this is the cause of of getting it.</p>