Flutter:如何在Flutter中将main.dart(入口点)更改为其他页面? [英] Flutter : How do i change main.dart(entry point) to some other page in Flutter?

查看:1134
本文介绍了Flutter:如何在Flutter中将main.dart(入口点)更改为其他页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  • 我开始在main.dart中处理应用程序的主页".
  • 然后我创建了"Login.dart"页面,现在我希望我的应用程序以"Login.dart"页面开头.
  • 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 to start with "Login.dart" page.

我是Flutter的新手,

i am newbie in Flutter,

谢谢您的宝贵时间和关注,并在此先感谢您!

ThankYou for your valuable time and attention and thanks in advance!!

推荐答案

-t参数执行各种命令(运行,生成,...)支持的功能

The -t parameter does that which is supported by various commands (run, build, ...)

flutter run -t lib/my_other_main.dart

这篇关于Flutter:如何在Flutter中将main.dart(入口点)更改为其他页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆