i encounter this error message after successful installation
Error: The Flutter directory is not a clone of the GitHub project. The flutter tool requires Git in order to operate properly; to install Flutter, see the instructions at: https://flutter.dev/get-started
i found it in line 218-226 /opt/flutter/bin/internal/shared.sh
# Test if the flutter directory is a git clone (otherwise git rev-parse HEAD
# would fail)
if [[ ! -e "$FLUTTER_ROOT/.git" ]]; then
>&2 echo "Error: The Flutter directory is not a clone of the GitHub project."
>&2 echo " The flutter tool requires Git in order to operate properly;"
>&2 echo " to install Flutter, see the instructions at:"
>&2 echo " https://flutter.dev/get-started"
exit 1
fi
i just clone flutter repository to /opt/flutter and added symbolic link for google-chrome and dart bind with flutter so i remove dart by
sudo pacman -R dart
and
sudo ln -s "/opt/flutter/bin/dart" "/usr/bin/dart" sudo ln -s "/opt/google/chrome/google-chrome" "/usr/bin/google-chrome"
thanks for this great aur
Pinned Comments
WithTheBraid commented on 2025-11-11 10:15 (UTC)
This package is deprecated in favor of
aur/flutterwhich now contains all required artifacts on its own. This PKGBUILD will be kept as is in order to ensure seamless builds of old Flutter version in future.