You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The attribute API is subject to change: new attribute groups and attributes will be added, and in some cases, some attributes may be removed (either entirely, or on a product per product basis). So the app should not make any expectation about the returned attribute groups and attributes, and handle them gracefully.
We just disabled the Eco-Score for countries other than France, and as the app is not passing the country in the cc field, the ecoscore attribute is not returned.
It results in an error:
======== Exception caught by widgets library =======================================================
The following NoSuchMethodError was thrown building AttributeCard(dirty):
The getter 'title' was called on null.
Receiver: null
Tried calling: title
When the exception was thrown, this was the stack:
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5) #1 AttributeCard.build (package:smooth_app/cards/data_cards/attribute_card.dart:23:29) #2 StatelessElement.build (package:flutter/src/widgets/framework.dart:4701:28) #3 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4627:15) #4 Element.rebuild (package:flutter/src/widgets/framework.dart:4343:5)
The text was updated successfully, but these errors were encountered:
…ipe/dismiss
Impacted files:
* `attribute_list_expandable.dart`: unrelated fix for #131
* `dao_product_list.dart`: added methods `clear` and `paste`
* `list_page.dart`: refactoring
* `product_list_page.dart`: added a Swipe+Dismissible effect on user lists; added a BottomNavigationBar to copy/paste/clear/delete
* `product_page.dart`: made public the `showLists` method
* `smooth_product_card_found.dart`: long press triggers the display of the lists the product belongs to
* `user_preferences.dart`: added a preference for "copy/paste"
* `user_preferences_model.dart`: added method `getReferenceAttribute`
The attribute API is subject to change: new attribute groups and attributes will be added, and in some cases, some attributes may be removed (either entirely, or on a product per product basis). So the app should not make any expectation about the returned attribute groups and attributes, and handle them gracefully.
We just disabled the Eco-Score for countries other than France, and as the app is not passing the country in the cc field, the ecoscore attribute is not returned.
It results in an error:
======== Exception caught by widgets library =======================================================
The following NoSuchMethodError was thrown building AttributeCard(dirty):
The getter 'title' was called on null.
Receiver: null
Tried calling: title
When the exception was thrown, this was the stack:
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)
#1 AttributeCard.build (package:smooth_app/cards/data_cards/attribute_card.dart:23:29)
#2 StatelessElement.build (package:flutter/src/widgets/framework.dart:4701:28)
#3 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4627:15)
#4 Element.rebuild (package:flutter/src/widgets/framework.dart:4343:5)
The text was updated successfully, but these errors were encountered: