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/search by multiple properties #25

Merged
merged 10 commits into from Jul 5, 2021

Conversation

theiskaa
Copy link
Member

@theiskaa theiskaa commented Jul 5, 2021

Resolves: #23

Result:

class-list.mov
FieldSuggestion(
  hint: 'Email',
  // If y're using list where are classes,
  // Don't forget adding search by property.
  searchBy: ['email', 'username'],
  itemTitleBy: 'username',
  // If you provide [itemSubtitleBy] then suggestion 
  // item's subtitle automaticallty will be enabled.
  itemSubtitleBy: '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['passoword']);
  },
),

@theiskaa theiskaa added the feature New feature or request label Jul 5, 2021
@theiskaa theiskaa self-assigned this Jul 5, 2021
@theiskaa theiskaa changed the title Feature/search multiple props Feature/search by multiple properties Jul 5, 2021
@codecov
Copy link

codecov bot commented Jul 5, 2021

Codecov Report

Merging #25 (971efa2) into develop (e7ebe59) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop      #25      +/-   ##
===========================================
+ Coverage    99.50%   99.52%   +0.02%     
===========================================
  Files            4        4              
  Lines          202      211       +9     
===========================================
+ Hits           201      210       +9     
  Misses           1        1              
Impacted Files Coverage Δ
lib/src/styles.dart 100.00% <ø> (ø)
lib/src/field_suggestion.dart 99.38% <100.00%> (+0.01%) ⬆️
lib/src/suggestion_item.dart 100.00% <100.00%> (ø)
lib/src/utils.dart 100.00% <100.00%> (ø)

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 e7ebe59...971efa2. Read the comment docs.

@theiskaa theiskaa merged commit d89086a into develop Jul 5, 2021
@theiskaa theiskaa deleted the feature/search-multiple-props branch July 25, 2021 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make able to search by multiple properties.
1 participant