autocomplete_plus 0.0.1 copy "autocomplete_plus: ^0.0.1" to clipboard
autocomplete_plus: ^0.0.1 copied to clipboard

A new Flutter package to help you.

autocomplete_plus #

Flutter package AutoCompletePlus

#🚧 Tests in progress...

AutoCompletePlus<String>.floating(
                optionsBuilder: (textEditingValue) =>
                    textEditingValue.text.isEmpty
                        ? []
                        : _words.where(
                            (element) =>
                                element.startsWith(textEditingValue.text),
                          ),
                fieldDecoration: const InputDecoration(
                  border: OutlineInputBorder(),
                ),
              ),
AutoCompletePlus<String>.fade(
                optionsBuilder: (textEditingValue) =>
                    textEditingValue.text.isEmpty
                        ? []
                        : _words.where(
                            (element) =>
                                element.startsWith(textEditingValue.text),
                          ),
                fieldDecoration: const InputDecoration(
                  border: OutlineInputBorder(),
                ),
                fadeTextStyle: const TextStyle(
                  color: Colors.grey,
                ),
              ),
AutoCompletePlus<UserModel>.fadeAndFloating(
                optionsBuilder: (textEditingValue) =>
                    textEditingValue.text.isEmpty
                        ? []
                        : _users.where(
                            (element) =>
                                element.name.startsWith(textEditingValue.text),
                          ),
                onSelected: (option) {
                  print('Selected: ${option.name}');
                },
                fieldDecoration: const InputDecoration(
                  border: OutlineInputBorder(),
                ),
                displayStringForOption: (option) => option.name,
                fadeTextStyle: const TextStyle(
                  color: Colors.grey,
                ),
              ),