hiddencaliber / flutter_multiselect

Flutter package for multi-select UI widget
Other
52 stars 37 forks source link

Bad state: Too many elements #21

Open Chuvantinh opened 4 years ago

Chuvantinh commented 4 years ago

I got this error because I have a lot of elements. Can you help me to resolve that ? thanks It seems an error of dart sdk error : "Bad state: Too many elements" , That was so, when I selected 2 or 3 Element in the List here js my code in the multiple select . `dataSource: [ { "display": "9 UHR", "value": 9, }, { "display": "12 UHR", "value": 12, }, { "display": "18 UHR", "value": 18, }, { "display": "21 UHR", "value": 21, }, { "display": "10 Uhr", "value": 10 }, { "display": "11 Uhr", "value": 11 }, { "display": "12 Uhr", "value": 12 }, { "display": "13 Uhr", "value": 13 }, { "display": "14 Uhr", "value": 14 }, { "display": "15 Uhr", "value": 15 }, { "display": "16 Uhr", "value": 16 }, { "display": "17 Uhr", "value": 17 }, { "display": "18 Uhr", "value": 18 }, { "display": "19 Uhr", "value": 19 }, { "display": "20 Uhr", "value": 20 }

                      ],`
Flutter-Stack commented 4 years ago

I am also getting same error any solutions for this ?

Chuvantinh commented 4 years ago

I have created other multiple select like a dialog with check box .

hiddencaliber commented 4 years ago

@Chuvantinh @Flutter-Stack Do you guys still have this problem?

Chuvantinh commented 4 years ago

I was using other code to have a list select . but you can check the error like above . thanks . hope you have time to fix it

abdulpiksi commented 4 years ago

make sure textField: 'display', valueField: 'value', same