-
Notifications
You must be signed in to change notification settings - Fork 30.2k
Closed
Description
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.

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),));Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels