Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/229.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 在颤振中使用路线的目的是什么?_Android_Flutter - Fatal编程技术网

Android 在颤振中使用路线的目的是什么?

Android 在颤振中使用路线的目的是什么?,android,flutter,Android,Flutter,我不明白使用路线的目的,只是为了在MaterialApp类中记录我们实际导航的位置吗?这是一种更易于使用的方法, 当您想要导航到新屏幕时, 或者到一个新的URL 因为飘动我们也用于网络 有关更多信息,请访问此链接 initialRoute: '/', routes: { '/':(context)=> WelcomeScreen() , '/login':(context) => LoginScreen() , '/register':(context)

我不明白使用路线的目的,只是为了在MaterialApp类中记录我们实际导航的位置吗?

这是一种更易于使用的方法, 当您想要导航到新屏幕时, 或者到一个新的URL 因为飘动我们也用于网络 有关更多信息,请访问此链接

initialRoute: '/',
  routes: {
    '/':(context)=> WelcomeScreen() ,
    '/login':(context) => LoginScreen() ,
    '/register':(context)=>RegistrationScreen(),
  }