flutter_photo
flutter_photo copied to clipboard
Can I convert type from File to AssetEntity?
Because sometimes I need to get resources from cameras
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?
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.
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