Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I need to create a expansion list in flutter filter with heading as main category and child as subcategores

here is my list

  [
  {
    "id": 1,
    "name": "abc",
    "child": [
      {
        "id": 29,
        "name": "sample 1",
        "child": [],
        "media": []
      },
      {
        "id": 29,
        "name": "sample 1",
        "child": [],
        "media": []
      },
      {
        "id": 29,
        "name": "sample 1",
        "child": [],
        "media": []
      }
    ]
  },
  {
    "id": 1,
    "name": "abc",
    "child": [
      {
        "id": 29,
        "name": "sample 1",
        "child": [],
        "media": []
      },
      {
        "id": 29,
        "name": "sample 1",
        "child": [],
        "media": []
      },
      {
        "id": 29,
        "name": "sample 1",
        "child": [],
        "media": []
      }
    ]
  },
  {
    "id": 1,
    "name": "abc",
    "child": [
      {
        "id": 29,
        "name": "sample 1",
        "child": [],
        "media": []
      },
      {
        "id": 29,
        "name": "sample 1",
        "child": [],
        "media": []
      },
      {
        "id": 29,
        "name": "sample 1",
        "child": [],
        "media": []
      }
    ]
  }
]

I need to add it as categories and sub categories as list

example

abc 
      sample 1 
      sample 2

kindly let us know how to create list inside list in expansion panel . is there any other option to show in as filter kindly suggest

question from:https://stackoverflow.com/questions/65559565/expansion-panel-list-in-flutter-with-dynamic-list-in-flutter

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
165 views
Welcome To Ask or Share your Answers For Others

1 Answer

Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...