I’ve tried but didn’t worked, I am not able to make a logic.
I have two list in each list and in each item of list there are items separated by slash
List1:-
Mango/banana
Lichi
Banana/Lichi/mango
List2 is having numbers:-
1/2
4
2/3/2
I want that suppose for first item of list in list1 is mango/banana and in list2 is 1/2 . In same index if we check then mango and banana are having value 1 and 2 respectively and so on if further there are. The numbers are showing the quantity. I want that some through the kodular blocks, it give me result like this for this item of list
Mango/banana/banana
Here banana is twice because it’s value was 2
I want this to be with every item of list
Now for full result output should be like this:
Mango/banana/banana
Lichi/Lichi/Lichi/Lichi
banana/banana/Lichi/Lichi/Lichi/Mango/Mango
What I’ve did since now:
I’ve used for each item block then for every item in the list, I’m spliting it by /
Then the length of that splitted , I used snackbar to notify my self if I am write or wrong but later whatever I did was totally illogical ig that’s why it was giving me somekind of error. I was making my logic but failed.