Skip to content

Error _invocationType null in flutter #20370

@rakz25

Description

@rakz25

I am trying to pass an image list on class Collage by generation route on fly. But the Navigator part does not gets called and throws error . Attached as screenshots.
screen shot 2018-08-09 at 1 18 44 pm

List resultList;
    String error;
    try {
      resultList = await FlutterMultipleImagePicker.pickMultiImages(
          maxImageNo, selectSingleImage);
    } on PlatformException catch (e) {
      error = e.message;
    }
    if (!mounted) return;
     setState(() {
      images = resultList;
//Try to send data or image back to main screen
      // List<int> imageBytes = resultList.readAsBytesSync();
      // String base64Image = BASE64.encode(imageBytes);
//send data back



   Navigator.of(context).push(new PageRouteBuilder(
     pageBuilder: (_, __, ___) => Collage(this.images),));

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