navigateTo function
Implementation
Future<void> navigateTo(BuildContext context, Widget widget) async {
Navigator.push(
context,
PageRouteBuilder(
pageBuilder: (context, animation1, animation2) => widget,
transitionDuration: Duration.zero,
reverseTransitionDuration: Duration.zero,
),
);
}