amlcloud / screensite

4 stars 6 forks source link

Added match score to search result item #211

Closed anshuman-111 closed 1 year ago

anshuman-111 commented 1 year ago

Added match score to Search Item Result widget.

Changes made to files:

search_page.dart

  1. Added GenericStateNotifier named selectedSearchResultId
  2. Added parameter to the constructor for searchResultItem widget.

search_result.dart

  1. Added id of the search document to the notifier selectedSearchResultId
  2. Removed and rounded decimal values from Match Score

jsonview_switch.dart

  1. Changed the text JSON Data to View Raw Data
  2. Changed the position of the Switch Widget to the bottom of the container.

search_result_item.dart

  1. Added List ID, List Name, and Match Score to the Widget
  2. Added some styling to the Widget

search_list_item.dart

  1. Renamed document reference

UI Preview

Screenshot (18)