You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using https://pub.dev/packages/multi_image_picker/ to transform List<Asset> to List<File>
This list is generated as below :
final temp = await Directory.systemTemp.createTemp();
List<File> images = List<File>();
for (int i = 0; i < assets.length; i++) {
final data = await assets[i].getByteData();
images.add(await File('${temp.path}/img$i').writeAsBytes(
data.buffer.asUint8List(
data.offsetInBytes, data.lengthInBytes)));
}
From that list, I then display the pictures in a carousel allowing the user to crop the picture and/or apply a filter.
I am struggling to setup the filter example.
I woud like to get the File > apply the filter > replace the previous File with the new one and then setState to update the carousel image.
Hi,
I am using https://pub.dev/packages/multi_image_picker/ to transform
List<Asset>
toList<File>
This list is generated as below :
From that list, I then display the pictures in a carousel allowing the user to crop the picture and/or apply a filter.
I am struggling to setup the filter example.
I woud like to get the File > apply the filter > replace the previous File with the new one and then setState to update the carousel image.
Where are my mistakes there please ?
The text was updated successfully, but these errors were encountered: