Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/onItemSelected #24

Merged
merged 7 commits into from Jul 2, 2021
Merged

Feature/onItemSelected #24

merged 7 commits into from Jul 2, 2021

Conversation

theiskaa
Copy link
Member

@theiskaa theiskaa commented Jul 2, 2021

Resolves: #22

Example:

 FieldSuggestion(
    hint: 'Email',
    // If y're using list where are classes,
    // Don't forget adding search by property.
    searchBy: 'email',
    boxController: thirdBoxController,
    textController: thirdTextController,
    suggestionList: userSuggestions,
    onItemSelected: (value) {
      // The field suggestion needs toJson mehtod inside your model right? 
      // So that's mean it converts your model to json.
      // Then the output has to be JSON (Map). So now we can get our value's email.
      print(value['email']);
    },
 ),

@theiskaa theiskaa added bug Something isn't working feature New feature or request labels Jul 2, 2021
@theiskaa theiskaa self-assigned this Jul 2, 2021
@codecov
Copy link

codecov bot commented Jul 2, 2021

Codecov Report

Merging #24 (483d835) into develop (dfd1bbe) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop      #24   +/-   ##
========================================
  Coverage    99.49%   99.50%           
========================================
  Files            4        4           
  Lines          199      202    +3     
========================================
+ Hits           198      201    +3     
  Misses           1        1           
Impacted Files Coverage Δ
lib/src/field_suggestion.dart 99.36% <100.00%> (+0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dfd1bbe...483d835. Read the comment docs.

@theiskaa theiskaa changed the title Feature/on item selected Feature/onItemSelected Jul 2, 2021
@theiskaa theiskaa merged commit e7ebe59 into develop Jul 2, 2021
@theiskaa theiskaa deleted the feature/onItemSelected branch July 2, 2021 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

onItemSelected
1 participant