https://github.com/ddzy/github
Github APP
https://github.com/ddzy/github
Last synced: 10 months ago
JSON representation
Github APP
- Host: GitHub
- URL: https://github.com/ddzy/github
- Owner: ddzy
- License: mit
- Created: 2023-12-25T02:25:46.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-05T05:58:22.000Z (over 2 years ago)
- Last Synced: 2024-05-10T03:23:56.354Z (about 2 years ago)
- Language: Dart
- Size: 595 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# github
## 项目介绍
flutter仿移动端Github App,主要实现:
* [X] 首页
* [X] 登录页
* [X] 个人资料页
* [X] repo仓库页
* [X] repo仓库详情页
* [X] repo代码详情页
* [X] issue议题页
* [X] issue议题详情页
* [X] starred已加星标页
项目主要使用 `github`官方提供的 `GraphQL API`,文档地址:
> https://docs.github.com/zh/graphql
## 运行和调试
### vscode
以mac为例,需要先配置iOS模拟器:
```bash
open -a Simulator
```
然后安装好 `vscode`所需的 `flutter`插件;
接着在 `vscode`中按 `F5`即可以调试的方式启动项目(可通过引入 `dart:developer`包提供的 `log()`方法在终端调试控制台打印数据)
项目使用 `json_serializable`简化json对象和dart对象的互相转换流程,在 `vscode`终端中可以通过如下命令自动化生成 `*.g.dart`文件:
```dart
dart run build_runner watch
```