sdk-for-flutter icon indicating copy to clipboard operation
sdk-for-flutter copied to clipboard

Update storage and avatars services to include methods to get URLs

Open stnguyen90 opened this issue 2 years ago • 3 comments

Issue: https://github.com/appwrite/sdk-for-flutter/issues/71

SDK Generator PR: https://github.com/appwrite/sdk-generator/pull/495

stnguyen90 avatar Jul 22 '22 22:07 stnguyen90

@lohanidamodar, you can focus on https://github.com/appwrite/sdk-for-flutter/pull/74/commits/9a770bc75904727660acc7b58a1a9344e8ae68dc to see the changes to the storage and avatars services. Hopefully, this gives you an idea of what I was thinking we would provide. We can finalize the name of the methods and docs before merging.

stnguyen90 avatar Jul 22 '22 22:07 stnguyen90

Done This

appwrite:
    git:
      url: https://github.com/appwrite/sdk-for-flutter.git
      ref: feat-71-method-generate-file-url

getting this error

('../../../../../AppData/Local/Pub/Cache/git/sdk-for-flutter-9a770bc75904727660acc7b58a1a9344e8ae68dc/lib/src/client.dart').
[        ] Try correcting the name to the name of an existing getter, or defining a getter or field named 'endpoint'.
[        ]         final uri = Uri.parse(client.endpoint + path).replace(queryParameters: params);

We want to get the image Url its a must have feature.

Shiba-Kar avatar Sep 10 '22 06:09 Shiba-Kar

We want to get the image Url its a must have feature.

@Shiba-Kar, this is a pretty stale branch and only a POC. I would suggest building the URL manually instead of trying to use this branch.

stnguyen90 avatar Sep 10 '22 15:09 stnguyen90