Flutter : How do i change main.dart(entry point) to some other page in Flutter?

前端 未结 7 656
故里飘歌
故里飘歌 2020-12-16 15:08
  • I started working on the \"home page\" of the application in main.dart.
  • Then I created \"Login.dart\" page, and now i want my application t
7条回答
  •  南方客
    南方客 (楼主)
    2020-12-16 15:58

    flutter run -t lib/main_admin.dart the t stands for target, the default of which is lib/main.dart. If you don't specify the -t you will go to lib/main.dart

    you can also pass in --flavor to the flutter run command if you would like to load a different flavour for your same entry point - ie production, dev & test

提交回复
热议问题