Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flutter 使用总结~ #4

Open
Gorden-Wang opened this issue May 7, 2018 · 0 comments
Open

flutter 使用总结~ #4

Gorden-Wang opened this issue May 7, 2018 · 0 comments

Comments

@Gorden-Wang
Copy link
Owner

Gorden-Wang commented May 7, 2018

安装

通过Using-Flutter-in-China中的指示,如下安装

export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
git clone -b dev https://github.com/flutter/flutter.git
export PATH="$PWD/flutter/bin:$PATH"
cd ./flutter
flutter doctor

如果你是Mac用户,不妨修改~/.bash_profile

export PATH="flutter目录/bin:$PATH"

这样你可以在任何地方调用 flutter命令

IDE

vscode和Android Studio 都可以,但是 Android Studio 的调试工具可能有跟好的inspector,像调试前端DOM一样,查看Render Tree和Widgets。另外,Android Studio 提供了几个快捷的方法,如:添加padding,添加Row,添加Column,抽离成方法 等。同时可以查看页面的刷新率,CPU等信息。推荐Android Studio

新建项目开搞

可以用IDE提供的模板快速开始

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant