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

Add why we choose flutter doc #52

Merged
merged 1 commit into from
Jan 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/flutter_analyze.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ jobs:
with:
channel: 'beta'
- run: flutter pub get
- run: flutter pub add intl_utils
- run: flutter pub run intl_utils:generate
- run: flutter analyze .
2 changes: 2 additions & 0 deletions .github/workflows/release_windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
with:
channel: beta
- run: flutter config --enable-windows-desktop
- run: flutter pub add intl_utils
- run: flutter pub run intl_utils:generate
- run: flutter build windows
- uses: vimtor/action-zip@v1
with:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,6 @@ app.*.map.json
/android/app/debug
/android/app/profile
/android/app/release

# generated files
lib/generated
4 changes: 2 additions & 2 deletions NOTICE.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
## 图标来自
[品牌图标](https://brands.iconhelper.cn/)
## Icon
[Icon Helper](https://brands.iconhelper.cn/)
29 changes: 17 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@

Flutter Paas Dashboard

## 其他语言文档
- [English Doc](README_en.md)
# Why do we use flutter
- We don’t want JRE, JDK package is too large
- We can’t use c sharp because having people develop use mac.
- We are not good at frontend. Electron is not friendly to us.
- Golang isn't proper for GUI

# 安装
- [Install Doc](install.md)
# Install
[Install Doc](install.md)

# 开发环境准备
# Prepare to develop environment
## macos
```bash
flutter config --enable-macos-desktop
Expand All @@ -17,16 +20,18 @@ flutter config --enable-macos-desktop
```bash
flutter config --enable-windows-desktop
```
## 开发注意事项
### 数据存储位置
## others about develop
### sqlite data location
- macos ~/Library/Containers/com.github.shoothzj.paasDashboardFlutter/Data

# 运行
# run
## web
如需在Web下运行,需要关闭`chrome`的安全开关,步骤如下,参考链接: https://stackoverflow.com/questions/65630743/how-to-solve-flutter-web-api-cors-error-only-with-dart-code
if you need to run on web mode, need to turn off the `chrome` security switch, refer to https://stackoverflow.com/questions/65630743/how-to-solve-flutter-web-api-cors-error-only-with-dart-code
```bash
# 跳转到flutter安装目录
# jump to flutter install location
rm -rf bin/cache/flutter_tools.stamp
```
编辑`packages/flutter_tools/lib/src/web/chrome.dart`<br/>
`'--disable-extensions',`后面添加`'--disable-web-security',`
edit `packages/flutter_tools/lib/src/web/chrome.dart`<br/>
add `'--disable-web-security',` behind `'--disable-extensions',`
### attention
the web mode can only use a part of features
3 changes: 0 additions & 3 deletions README_en.md

This file was deleted.

8 changes: 4 additions & 4 deletions install.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## 安装步骤
## Install Steps
### windows
下载最新的release压缩包,[下载地址](https://github.com/paashzj/paas_dashboard_flutter/releases) <br/>
解压压缩文件 <br/>
运行**pass_dashboard_flutter.exe** 即可
download the latest zip from [Releases](https://github.com/paashzj/paas_dashboard_flutter/releases) <br/>
unzip the zip <br/>
run **pass_dashboard_flutter.exe**
65 changes: 0 additions & 65 deletions lib/generated/intl/messages_all.dart

This file was deleted.

88 changes: 0 additions & 88 deletions lib/generated/intl/messages_en.dart

This file was deleted.

86 changes: 0 additions & 86 deletions lib/generated/intl/messages_zh.dart

This file was deleted.

Loading