Skip to content

Download and set the project

Run the project locally

  1. Clone the project from: project repo.

    WARNING

    Do not install Flutter to a directory or path that meets any of the following conditions:

    • The path contains special characters or spaces.

    • The path requires elevated privileges.

    As an example, C:\Program Files\, ~/dev/我的專案/ fails the condition(s) listed above.

  2. Open the project with your IDE.
    Run the following command to get project's dependency packages:

    bash
    flutter pub get
  3. Run the following command to generate additional dart code:

    bash
    flutter packages pub run build_runner build

    WARNING

    If you modified the file that will generate additional dart code, you will encounter conflict when running flutter packages pub run build_runner build.
    Select 1. Delete to replace the old generated file(s);
    Or just run the following command-line, always replace the old file with the new generated one:

    flutter packages pub run build_runner build --delete-conflicting-outputs
  4. Run the process.

TIP

Flutter offers a fast development cycle with Stateful Hot Reload, the ability to reload the code of a live running app without restarting or losing app state.

For for info about Hot Reload: Official Document.