aqueduct

OAuth Error using Aqueduct, mismatched ManagedPropertyType

佐手、 提交于 2019-12-13 03:46:10
问题 I am using the OAuth hooks provided with a fresh creation of an Aqueduct project. My data is URI encoded in the following way: var form = body.keys .map((key) => "$key=${Uri.encodeQueryComponent(body[key])}") .join("&"); I received the following error when attempting to register a User: DataModelException: Type mismatch for property username on _User, expected assignable type matching ManagedPropertyType.string but got _ImmutableList. #0 ManagedValueBacking.setValueForProperty The request

Flutter - Pass a Future List to a SearchDelegate

穿精又带淫゛_ 提交于 2019-12-02 02:47:22
I've been following a Flutter Search tutorial on the - boring flutter show . I have been trying to implement the same functionality using a list which is derived from a Future List where the data comes from an api (in this case and Aqueduct server). Currently my screen lists all the contacts from the api, i'd now like to search against that contacts list. I'm assuming it would be best practice to pass the same list (which is already being displayed) to the search delegate. Unfortunately i'm not sure how to achieve this. My code is as follows (please note i've stripped down some of the code for