nutrition_ai 3.0.2
nutrition_ai: ^3.0.2 copied to clipboard
Passio Nutrition AI SDK for Flutter. Supports Android and iOS.
3.0.2 #
Added APIs #
- Added API to fetch suggestion for a certain meal time. To fetch the full nutritional data for a suggestion item use
fetchFoodItemForSuggestion.
enum MealTime {
breakfast,
lunch,
dinner,
snack,
}
Future<List<PassioSearchResult>> fetchSuggestions(MealTime mealTime)
Future<PassioFoodItem?> fetchFoodItemForSuggestion(PassioSearchResult suggestion)
Added Micronutrients: #
- Zinc
- Selenium
- Folic acid
- Chromium
- Vitamin-K Phylloquinone
- Vitamin-K Menaquinone4
- Vitamin-K Dihydrophylloquinone
Refactored APIs #
- Renamed
fetchSearchResulttofetchFoodItemForSearchResult.
3.0.1 #
- Version 3 of the Passio SDK introduces major changes to the nutritional data class and the search functionality. The SDK no longer supports offline work, there is no more local database.
Deprecated APIs #
lookupPassioAttributesForhas been removed because it was querying the local database.- PassioIDAttributes, PassioFoodItemData and PassioFoodRecipe have been removed. The new data model that will handle nutritional data is called PassioFoodItem
Refactored APIs #
searchForFoodnow returns PassioSearchResponse. In PassioSearchResponse you will get list of PassioSearchResult and a list of search options. The PassioSearchResult represent a specific food item associated with the search term.fetchPassioIDAttributesForBarcodeandfetchPassioIDAttributesForPackagedFoodhave been replaced withfetchFoodItemForProductCodethan now returns a PassioFoodItem resultDetectedCandidatenow has an attribute called foodNameFoodRecognitionListenermethodonRecognitionResultscan now return nullable FoodCandidatesfetchNutrientsForhas been renamed tofetchInflammatoryEffectData, and PassioNutrient has been renamed to InflammatoryEffectData
Added APIs #
fetchSearchResultreturns a PassioFoodItem object for a given PassioSearchResultfetchFoodItemForPassioIDreturns a PassioFoodItem object for a given passioID corresponding to a result from the visual detection- Added class PassioSearchResult that represents a result from the searchForFood function
- Added class PassioFoodItem that represent a food item from the Passio Nutritional database. It has a list of PassioIngredients, with their respective PassioFoodAmounts and PassioNutrients
2.3.15 #
- Added
fetchNutrientsFormethod to retrieve a map of nutrients for a 100 grams of a specific food item.
0.0.10 #
- No API changes
0.0.9 #
- Add
PlatformImageparameter to therecognitionResultsof theFoodRecognitionListener. It represents the image that was analyzed by the camera recognition system.
0.0.8 #
- Fixed iOS camera not stopping issue
0.0.7 #
- Fixed Android camera not stopping issue
0.0.6 #
- Removed app bar from
PassioPreview - Fixed issue with food items that don't have an origin
- Fixed Android issue with caching
PassioFoodItemData
0.0.5 #
- Clean up of the example app code
- Added distribution github repository with the source code and issue tracker
0.0.4 #
- Fix issue with PassioSDKError
0.0.3 #
- Add
detectFoodInto run detection from a single image. - Add
fetchTagsForto fetch the list of tags for a food item. - Add
iconURLForto get the url for downloading an icon for a food item. - Add
transformCGRectFormto calculate the bouding box of scanned food item. - Add volume detection using
VolumeDetectionMode - Add
android:required="false"to camera manifest features in Android. - Refactor
lookupIconsForto return a list ofPassioFoodIconsobjects. - Refactor
PassioPreviewwidget to remove all unnecessary widgets.
0.0.2 #
- Add missing .aar dependency
0.0.1 #
- Alpha release of the Nutrition AI SDK for Flutter.
- Visual, barcode and packaged food detection using the camera of the device.
- Fetching nutritional data of the scanned food.
- Searching by food name.
- Fetching the icon for the food item.