horizontalNavigation function

void horizontalNavigation(
  1. BuildContext context,
  2. Widget screen, [
  3. bool rootNavigator = false
])

Implementation

void horizontalNavigation(BuildContext context, Widget screen, [bool rootNavigator = false]) {
	if (Platform.isIOS) {
	  Navigator.of(context, rootNavigator: rootNavigator).push(
			MaterialPageRoute(
				builder: (BuildContext context) => screen,
			),
		);
	} else {
	  Navigator.of(context, rootNavigator: rootNavigator).push(
			CupertinoPageRoute(
				builder: (BuildContext context) => screen,
			),
		);
	}
}