Navigator.push(
context,
MaterialPageRoute(
builder: (context) => PageName(
data: data,
),
),
);
Navigator.push can be used to open a page in Flutter. You need to pass context and MaterialPageRoute which has a builder function where you can pass page name and its data if required.
0 Comments