Skip to content

Example Not Working #1

@Victor-Dev77

Description

@Victor-Dev77

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;
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions