This project is the reference source code of online video course 叽歪课程 - Flutter 移动应用开发实战, including usage demo of flutter components and a social video app weiguan like tiktok.
To students of course: 最新的实战项目目录结构已按照新版 干净架构最佳实践 进行了重构,目录结构调整较大。如想获取之前版本,可查看提交记录。
Please refer to flutter official document Install.
git clone git@github.com:jaggerwang/flutter-in-practice.git && cd flutter-in-practice
flutter packages get
Connet your Android or iOS device to your computer or run a simulator using the following commands.
$ flutter emulators
2 available emulators:
9.0-1080p • 9.0-1080p • Google • android
apple_ios_simulator • iOS Simulator • Apple • ios
...
$ flutter emulators --launch apple_ios_simulator
This repository contains several apps.
To run flutter demo:
flutter run -t lib/demo/main.dart
To run weiguan:
flutter run -t lib/weiguan/mobile/main.dart
The weiguan app need a backend api service, as default it will use a mocked api service. You can enable enableRestApi
option to use a real service from Sanic in Practice or Spring Boot in Practice. The later one also supplys a graphql api service, you can enable enableGraphQLApi
option to use it.
If you want to see more log info, you can run weiguan in dev mode:
flutter run -t lib/weiguan/mobile/main_dev.dart
The video player can not work on iOS simulator, you should use an Android emulator or a real device.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。