holtzmak / Humane-Transport

A Flutter and Firebase mobile application to record Canadian animal transport and transfer of care documentation
https://sanakhan1997.github.io/Humane-Transport/
GNU General Public License v3.0
6 stars 3 forks source link

Added query to upload images to firebase_storage #222

Closed MummenRider closed 3 years ago

MummenRider commented 3 years ago

Added a query that will create the ability to upload images to firebase storage. Possible tasks that could be open is the ViewModel that will use the service itself. I also added a really useful plugin called permission_handler where it can be use in the viewmodel by checking the permission.

Link to the tutorial I followed for this task.

holtzmak commented 3 years ago

I watched some of that tutorial you linked. We should look into image compression, too.

MummenRider commented 3 years ago

Will do in my next commit

Can you also add the function(s) to retrieve the image from storage? I can then use these in the editing screen and so on.

MummenRider commented 3 years ago

As discussed in the meeting, we don't need a function to retrieve image from firebase storage. We can simply use built in functionality Image.network('imageUrl'). Another way to do this is to use external plugin called extended_image. This plug in have a lot features like caching, crop image and more. The query is to be used in viewModel

Will do in my next commit

Can you also add the function(s) to retrieve the image from storage? I can then use these in the editing screen and so on.

holtzmak commented 3 years ago

As discussed in the meeting, we don't need a function to retrieve image from firebase storage. We can simply use built in functionality Image.network('imageUrl'). Another way to do this is to use external plugin called extended_image. This plug in have a lot features like caching, crop image and more. The query is to be used in viewModel

Oh, right. I knew this and still asked. Sorry about that!