From f9bf05383fd24413592a52255f3be9e1fe03b86e Mon Sep 17 00:00:00 2001 From: Orange Kao Date: Sat, 26 Aug 2023 09:54:14 +1000 Subject: [PATCH] README: install xdg-user-dirs for flutter_gallery 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. --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8918141a..03ddfecf 100644 --- a/README.md +++ b/README.md @@ -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)