flutter_photo icon indicating copy to clipboard operation
flutter_photo copied to clipboard

Can I convert type from File to AssetEntity?

Open linguitang opened this issue 6 years ago • 4 comments

linguitang avatar Jan 02 '19 06:01 linguitang

Because sometimes I need to get resources from cameras

linguitang avatar Jan 02 '19 06:01 linguitang

No plans to support camera. Can you describe your needs or provide a simple prototype screenshot to show me how I am going to answer this question?

CaiJingLong avatar Jan 02 '19 07:01 CaiJingLong

Because for a multi-picture selection library, adding a camera to get pictures will increase the complexity, and additional camera photo components will also be introduced. If you really have some custom requirements, you are welcome to try the fork library and add your own implementation. Or if you use other ways to get a File and want to convert it into Asset Entity for unified processing, consider inheriting Asset Entity, rewriting the method, introducing your own implementation, and then adding it to the same list.

CaiJingLong avatar Jan 02 '19 07:01 CaiJingLong

I use image_picker to take image and video ,the result type is File.but I want convert to AssetEntity。then,all files get from flutter_photo and image_picker can be handle by the same way

linguitang avatar Jan 02 '19 08:01 linguitang