You need to pass a values to a next screen class constructor.
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => FootbalScreen(leftPlayer[index]),
),
);
RouteSettings
useful when you defining routing on an app main class and all routing managed in this class. You can read more about routing organization in Documentation.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…