Skip to content

Latest commit

 

History

History
59 lines (49 loc) · 2.81 KB

README.md

File metadata and controls

59 lines (49 loc) · 2.81 KB

Trackord

This is the source code of the minimalist custom tracking app Trackord. You can also install it from the App Store.

Environment Setup:

  1. This is a Flutter project, so you need to install the Flutter SDK. Please follow the official Flutter guide to configure your system.
  2. Clone or download this repository and open the folder in VSCode.
  3. Run flutter pub get in the VSCode terminal to fetch dependencies.
  4. Run flutter gen-l10n in the VSCode terminal to generate localization files.
  5. [Optional] Run dart run flutter_native_splash:create in the VSCode terminal to generate a splash screen.
  6. [Optional] Run dart run flutter_launcher_icons:generate in the VSCode terminal to generate the app icon.
  7. Install a compatible emulator (Android or iOS) and run the app.

Auto-generate l10n files when saving .arb files

  • Install pucelle.run-on-save
  • Copy the following configuration into VSCode's settings.json
    "runOnSave.commands": [
            {
                "match": ".arb",
                "command": "flutter gen-l10n",
                "runIn": "terminal",
            },
        ],
    "runOnSave.defaultRunIn": "terminal",
    "runOnSave.onlyRunOnManualSave": true,

这是极简风格自定义记录软件Trackord的源码,也可前往App Store安装

环境配置:

  1. 此系Flutter项目,需安装Flutter SDK,请根据Flutter官网和系统配置好相关环境。
  2. Clone或者下载本repo,并用VSCode打开文件夹。
  3. 在VSCode Terminal运行flutter pub get获取相关依赖。
  4. 在VSCode Terminal运行flutter gen-l10n生成本地化文件。
  5. [可选] 在VSCode Terminal运行dart run flutter_native_splash:create生成启动画面
  6. [可选] 在VSCode Terminal运行dart run flutter_launcher_icons:generate生成app图标
  7. 安装相应模拟器(安卓或者iOS)并运行。

保存.arb文件时自动生成 l10n 文件

  • 安装 pucelle.run-on-save
  • 复制以下配置到 VSCodesettings.json
    "runOnSave.commands": [
            {
                "match": ".arb",
                "command": "flutter gen-l10n",
                "runIn": "terminal",
            },
        ],
    "runOnSave.defaultRunIn": "terminal",
    "runOnSave.onlyRunOnManualSave": true,