Skip to content

🙏 An APP of Buddhism for Spread Buddhist knowledge.

Notifications You must be signed in to change notification settings

Tora0615/Buddha-APP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Buddha-APP

An APP of Buddhism for Spread Buddhist knowledge.

Screen Shots

一些學習資源紀錄

  1. Flutter 修改应用名称、图标、启动页 教學待寫

  2. Git Commit Message 這樣寫會更好,替專案引入規範與範例

  3. Git永久删除文件(包括历史记录)

    git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch path-to-your-remove-file' --prune-empty --tag-name-filter cat -- --all

    link :

    https://gist.github.com/3b295/ac01498cfdc76c732e473c3756ed6bb2 https://www.cnblogs.com/shines77/p/3460274.html

  4. git push 卡住

    解決方式: 添加sendpack.sideband属性并置为false

    全局的:git config –global sendpack.sideband false
    仓库的:git config –local sendpack.sideband false
    

    link : https://blog.csdn.net/wangliyao518/article/details/84237016

一些踩雷紀錄

1. 修改啟動頁面Logo的時候,若drawable資料夾有好幾個,就都要改。因為會有數個不同的相容性版本使用 Link

2. 啟動頁白天黑夜模式顏色更改

3. 函式作為參數傳入widget

要設定為 final VoidCallback changeBoolState; 再傳入跟呼叫 Pass method as parameter to a widget

4. 系統字體影響 APP 文字大小 - 解決方法:

How to make Flutter app font size independent from device settings?

5. Can't use MediaQuery with the builder parameter of MaterialApp in flutter's new versions

Link

6. 上架 PlayStore 錯誤 : 版本代碼 1 已經使用過了,請使用其他版本代碼。

解決 : pubspec.yaml 的 version 後面要加上加號跟數字,如 0.1.3+2 說明 :

7. 解決在 StatefulWidget 中,state 區塊中非 build 之下,用 widget.$VAR 取用傳入 statefulWidget 建構子的值,出現 The instance member 'widget' can't be accessed in an initializer.

變數前加上 late 即可。

class _BottomNavigatorState extends State<BottomNavigator> {
  late int _currentIndex = widget.index; //重要
}

參考連結

8. Playstore error: App Bundle contains native code, and you've not uploaded debug symbols

解決方式 :

到 [YOUR_PROJECT]\build\app\intermediates\merged_native_libs\release\out\lib 目錄下 有 3 個資料夾 : * arm64-v8a * armeabi-v7a * x86_64 壓縮這三個資料夾成一個 ZIP 檔案作為符號文件,並在上傳完 aab 檔案後同時上傳此壓縮檔。 參考連結

9. 每次上傳前要做的事情

  1. 更新版本代碼
  2. 壓縮符號文件並上傳

TODO

[V] 啟動logo要換高畫質的

程式架構

  • main
    • wrapper (帳密相關尚未實作)
      • home
        • bottomNavigator (共用頁面)
          • pray scaffold (pray)
            • CommonHeader
            • PrayContext
              • WidgetBeforePray (抽籤前介紹頁面)
              • WidgetAfterPray
                • FoldingPoem
                  • _buildFrontWidget (摺起來的簽)
                  • _buildInnerWidget (內部資料)
          • latestNewsScaffold
            • CommonHeader
            • body
          • donateScaffold
            • CommonHeader
            • body
          • tempScaffold
            • CommonHeader
            • body

About

🙏 An APP of Buddhism for Spread Buddhist knowledge.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages