-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Hi,
Thank you for your package ! 🔥
But your example doesn't work..
When I selected pictures, in EditImage View there are just empty Container because files image are null.
So replace init() method in asset_item.dart file by this code:
Future<AssetItem> init() async {
// getting a directory path for saving
final String path = (await getApplicationDocumentsDirectory()).path;
file = File("$path/$name");
ByteData byteData = await getByteData();
List<int> imageData = byteData.buffer.asUint8List();
file.writeAsBytesSync(imageData);
return this;
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels