title: How To Set the index start value to 1 from 0 in flutter?
body: <pre><code>class AnatomyChapters extends StatefulWidget {
        const AnatomyChapters({Key key}) : super(key: key);
  
        @override
        _AnatomyChaptersState createState() =&gt; _AnatomyChaptersState();
      }
  
      class _AnatomyChaptersState extends State&lt;AnatomyChapters&gt; {
       @override
       Widget build(BuildContext context) {
        return Scaffold(
          body: Container(
          height: double.infinity,
           child: SingleChildScrollView(
            child: Column(
              mainAxisAlignment: MainAxisAlignment.start,
              children: List&lt;Widget&gt;.generate(
                6,
                (index) =&gt; ListTile(
                  title: Text('Chapter $index'),
                  onTap: () {
                    if (index == 1) {
                      Navigator.push(context,
                          MaterialPageRoute(builder: (context) =&gt; AnaChap1()));
                    } else if (index == 2) {
                      Navigator.push(context,
                          MaterialPageRoute(builder: (context) =&gt; AnaChap2()));
                     }
                   },
                  ),
                 ),
                ),
              ),
            ),
          );
        }
      }
  </code></pre>
  <p>When Generating a List of widgets(<code>ListTile</code>), The first index name shows 0, I want it to display index starting from 1.</p>
  <p><a href="https://i.stack.imgur.com/XawZc.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XawZc.jpg" alt="enter image description here" /></a></p>