Skip to content

adding fixed list #12

Description

@aqeelhashem

thanks for your library.

i want to add fixed list like this to customer can select multiple items from it:

 List  elements2 = [
    "Raspberry in Light",
    "Apple Red",
    "Avocado",
    "Banana",
    "Blackberry",
    "Blueberry",
    "Orange",
    "Raspberry",
    "Kiwi",
    "Mango Fresh",
    "Pumpkin Red",
    "Sweet Melon",
    "Strawberry",
    "Apricot",
    "Peach",
    "Coconut Greated Fresh",
    "Grapes Green",
    "Mandarin",
    "Orange Juice (In House)",
  ];

but i don't know haw can add it with these generated list ?

  List<MultipleSelectItem> elements = List.generate(
    15,
        (index) => MultipleSelectItem.build(
      value: index,
      display: '$index display',
      content: '$index content',
    ),
  );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions