Closed devmaslove closed 2 years ago
This is cool idea. Do you think we could maybe pass baseUrl from constructor so that we don't have to specify baseUrl every time?
This is cool idea. Do you think we could maybe pass baseUrl from constructor so that we don't have to specify baseUrl every time?
I think you need to make an additional function aka "downloadUrlFromDirectusSingelton" (need to think about the name, this is just for example) that will take the "baseUrl" value through the Directus singleton. But that's a different task.
Or you can move downloadUrl function from File object to Directus: downloadUrl(DirectusFile file)
I think it is not necessary to pass to the constructor. Need the ability to simply copy/save/load objects.
You're right. Maybe this kinda functionality should be added to src/modules/files/files_handler.dart
, probably another method to download that file.
It was necessary to receive the thumbnail url without having to add parameters manually. Now:
Need: