I working on a flutter project. I want to pass list from one page to another page. but it not working out for me
List list;
articleCall save = await Navigator.of(context).push(new MaterialPageRoute<articleCall>(
builder: (BuildContext context) {
return new AddArticleDialog(list);
},
-----------
class AddArticleDialog extends StatefulWidget {
List ls=[];
AddArticleDialog({this.ls});
@override
AddArticleDialogState createState() => new AddArticleDialogState();
}
It says me the error: Too many positional arguments: 0 expected, but 1 found. Please help
Thanks, Sathish