showSecondScreen function
Implementation
void showSecondScreen(BuildContext context) {
Navigator.of(context).push(
MaterialPageRoute(
builder: (_) => getSecondScreen(), // Use the wrapper
),
);
}
void showSecondScreen(BuildContext context) {
Navigator.of(context).push(
MaterialPageRoute(
builder: (_) => getSecondScreen(), // Use the wrapper
),
);
}