# 【解決済み】Listを連番で表示したい。その際に0,1,2ではなく1,2,3の順番で表示したい

**URL:** <https://www.nocode-faq.com/t/topic/4314>\
**Category:** flutterflow\
**Created:** [2024 年 7 月 3 日午前 9:34 UTC](https://www.nocode-faq.com/t/topic/4314 "2024-07-03T09:34:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tsubasa](https://sea2.discourse-cdn.com/flex020/user_avatar/www.nocode-faq.com/tsubasa/32/8670_2.png) [@tsubasa](https://www.nocode-faq.com/u/tsubasa)\
**Post date:** [2024 年 7 月 3 日午前 9:34 UTC](https://www.nocode-faq.com/t/topic/4314/1 "2024-07-03T09:34:34Z")

</div>

List表示順で、商品リストに連番をつけていきたいです。  
index in list で表示したところ、 0,1,2 と表示されます。これを、1,2,3と変更する方法はないでしょうか？

 ![image](https://us1.discourse-cdn.com/flex020/uploads/ncc_forum/original/2X/c/c1f4a336f7f1b19b8a53c7629d77320737458756.png)

やったこと  
ListViewからindex in Listで番号を表示

 ![image](https://us1.discourse-cdn.com/flex020/uploads/ncc_forum/original/2X/2/2e415d9fb4d75a4650192d3ae1e7dbd3808daacc.png)

---

<div class="post-metadata">

**Author:** ![tsubasa](https://sea2.discourse-cdn.com/flex020/user_avatar/www.nocode-faq.com/tsubasa/32/8670_2.png) [@tsubasa](https://www.nocode-faq.com/u/tsubasa)\
**Post date:** [2024 年 7 月 3 日午前 9:38 UTC](https://www.nocode-faq.com/t/topic/4314/2 "2024-07-03T09:38:35Z")

</div>

デフォルトのindex in list は、0から始まる仕様になってます。  
それを回避するためには、Code Expression を選択する必要があります。

 ![image](https://us1.discourse-cdn.com/flex020/uploads/ncc_forum/original/2X/f/f900ae2b6763d2ca831ac0e71eb2053819e7a68c.png)

index +1 とする

 ![image](https://us1.discourse-cdn.com/flex020/uploads/ncc_forum/original/2X/4/4bbe38c5235a92d1797ac5b52415e9e77e634ddb.png)

1 2 3 の順番になりました。

 ![image](https://us1.discourse-cdn.com/flex020/uploads/ncc_forum/original/2X/3/3f6b4e7600df9cc3709aae7c511f63ad7a882e84.png)

FFコミュニティにもやり方が紹介されているので参考にしてください。

【参考】最初の番号が 0 ではなく 1 から始まるインデックス リストを作成する方法

> **[How to have a index list with the first number starting at 1 instead of 0](https://community.flutterflow.io/database-and-apis/post/how-to-have-a-index-list-with-the-first-number-starting-at-1-instead-of-0-fxHCtDidTglB2W9)**
>
> I want to have list (from an api call) show a number value that is like a count of each item in the list. Like how Netflix has a top 10. But when I try I get (0,1,2,3,4) instead of (1,2,3,4,5). Does ...
