Skip to content

Commit 5af9691

Browse files
committed
fix: install flutter first
or at least before the later android studio section mentions it
1 parent e7c43ec commit 5af9691

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

docs/building.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,20 @@ Here you will find instructions on how to install the necessary tools for buildi
1313

1414
The following instructions are for building and running on a Linux host. Alternatively, see the [Mac](#mac-host) and/or [Windows](#windows-host) section. This entire section (except for the Android Studio section) needs to be completed in WSL if building on a Windows host.
1515

16+
### Flutter
17+
Install Flutter 3.38.1 by [following their guide](https://docs.flutter.dev/get-started/install/linux/desktop?tab=download#install-the-flutter-sdk). You can also clone https://github.com/flutter/flutter, check out the `3.35.7` tag, and add its `flutter/bin` folder to your PATH as in
18+
```sh
19+
FLUTTER_DIR="$HOME/development/flutter"
20+
git clone https://github.com/flutter/flutter.git "$FLUTTER_DIR"
21+
cd "$FLUTTER_DIR"
22+
git checkout 3.35.7
23+
echo 'export PATH="$PATH:'"$FLUTTER_DIR"'/bin"' >> "$HOME/.profile"
24+
source "$HOME/.profile"
25+
flutter precache
26+
```
27+
28+
Run `flutter doctor` in a terminal to confirm its installation.
29+
1630
### Android Studio
1731
Install Android Studio. Follow instructions here [https://developer.android.com/studio/install#linux](https://developer.android.com/studio/install#linux) or install via snap:
1832
```
@@ -76,20 +90,6 @@ sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev
7690
pip3 install --upgrade meson==0.64.1 markdown==3.4.1 markupsafe==2.1.1 jinja2==3.1.2 pygments==2.13.0 toml==0.10.2 typogrify==2.0.7 tomli==2.0.1
7791
```
7892

79-
### Flutter
80-
Install Flutter 3.38.1 by [following their guide](https://docs.flutter.dev/get-started/install/linux/desktop?tab=download#install-the-flutter-sdk). You can also clone https://github.com/flutter/flutter, check out the `3.35.7` tag, and add its `flutter/bin` folder to your PATH as in
81-
```sh
82-
FLUTTER_DIR="$HOME/development/flutter"
83-
git clone https://github.com/flutter/flutter.git "$FLUTTER_DIR"
84-
cd "$FLUTTER_DIR"
85-
git checkout 3.35.7
86-
echo 'export PATH="$PATH:'"$FLUTTER_DIR"'/bin"' >> "$HOME/.profile"
87-
source "$HOME/.profile"
88-
flutter precache
89-
```
90-
91-
Run `flutter doctor` in a terminal to confirm its installation.
92-
9393
### Clone the repository and initialize submodules
9494
After installing the prerequisites listed above, download the code and init the submodules
9595
```

0 commit comments

Comments
 (0)