showSecondScreen function

void showSecondScreen(
  1. BuildContext context
)

Implementation

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