Skip to content

Commit

Permalink
README: install xdg-user-dirs for flutter_gallery
Browse files Browse the repository at this point in the history
Running flutter_gallery on Raspberry Pi OS Lite may end up with
MissingPlatformDirectoryException(Unable to get application documents
directory)

Install "xdg-user-dirs" package can avoid it.
  • Loading branch information
orange-kao authored and ardera committed Oct 12, 2023
1 parent 9fde680 commit f9bf053
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ flutterpi_tool build --release --cpu=pi4
rsync -a ./build/flutter_assets/ pi@raspberrypi:/home/pi/flutter_gallery/
```
2. Done. You can now run this app in release mode using `flutter-pi --release /home/pi/flutter_gallery`.
2. On Raspberry Pi, run `sudo apt-get install xdg-user-dirs` to install the runtime requirement of flutter_gallery. (otherwise it may [throw exception](https://github.com/flutter/gallery/issues/979#issuecomment-1693361972))
3. Done. You can now run this app in release mode using `flutter-pi --release /home/pi/flutter_gallery`.
### Building the App (old method, linux or windows)
Expand Down

0 comments on commit f9bf053

Please sign in to comment.