@takase This package does not provide dart, dart is bundled due to flutter being a pain.
pacman -Syu dart if you want dart, which will install the latest version of dart and not what flutter has bundled.
Good luck,
Polarian
| Git Clone URL: | https://aur.archlinux.org/flutter.git (read-only, click to copy) |
|---|---|
| Package Base: | flutter |
| Description: | Flutter SDK component - linux target files |
| Upstream URL: | https://flutter.dev |
| Keywords: | android fuchsia ios mobile sdk |
| Licenses: | custom, BSD, CCPL |
| Groups: | flutter |
| Submitter: | flipflop97 |
| Maintainer: | WithTheBraid |
| Last Packager: | WithTheBraid |
| Votes: | 151 |
| Popularity: | 0.81 |
| First Submitted: | 2017-06-05 21:03 (UTC) |
| Last Updated: | 2025-10-28 13:25 (UTC) |
« First ‹ Previous 1 .. 8 9 10 11 12 13 14 15 16 17 18 .. 27 Next › Last »
@takase This package does not provide dart, dart is bundled due to flutter being a pain.
pacman -Syu dart if you want dart, which will install the latest version of dart and not what flutter has bundled.
Good luck,
Polarian
Somehow dart wasn't added to path, I had to modify the PKGBUILD to do that:
diff --git a/PKGBUILD b/PKGBUILD
index 1e52a20..32e9ccb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -74,4 +74,5 @@ package() {
mv "${pkgdir}/opt/${pkgname}/.git" "${pkgdir}/opt/${pkgname}/.git-refs"
ln -s "/opt/${pkgname}/bin/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
+ ln -s "/opt/${pkgname}/bin/dart" "${pkgdir}/usr/bin/dart"
}
Looks like you need to run
git config --global --add safe.directory /opt/flutter
after installation or flutter won't work.
Can we add this instruction to the PKGBUILD?
Hello,
flutter --version fails to return the correct version. In fact, it returns no version.
This breaks the building toolchain for a software I want to build, which checks the flutter version.
@frealgagu can you fix it?
Running flutter pub cache repair results in:
Flutter failed to write to a file at "/opt/flutter/packages/flutter_tools/.dart_tool/version".
Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current user.
Try running:
sudo chown -R $(whoami) /opt/flutter/packages/flutter_tools/.dart_tool/version
Hello,
I have updated flutter, and deployed it to polarrepo.
Would still like to discuss with the other maintainers what to do moving forward, please reach out!
Take care,
Polarian
I just updated this ughhh
I will do it in a few minutes :)
Those who are complaining about the package being update, the new version overwrote the old version, thus this package can not be bumped until the new new version is released, please read the comment history.
As I commented previously, 3.13.4 has been out since September 13. An even newer release 3.13.5 came out a few days ago: https://docs.flutter.dev/release/archive?tab=linux
Hello,
I have not really done much since I was added as a co-maintainer, I expected to fix the package, but due to issues with google, the likelihood of a working flutter package is low, and would require many patches.
I currently do not have the time for this, but I do want to try to help out, I apologise to the other maintainers but you continuing to aimlessly bump this package is not going to work.
I am aware that flutter contributors and developers are reading these posts, I kindly ask you to reconsider rejecting your decision to not help with packaging flutter, you have the better knowledge of the codebase and it would help out a ton, patching flutter would be a massive task and would be difficult to pull off.
Those who are complaining about the package being update, the new version overwrote the old version, thus this package can not be bumped until the new new version is released, please read the comment history.
I would appreciate if the other maintainers please reach out to me on IRC so we can better discuss this, I am within #archlinux-aur and my nick is the same (Polarian), please reach out so we can discuss this situation.
I have emailed you both in the past, but I never received a response, which is a severe disappointment, my email is polarian@polarian.dev, if you missed the email you can search for it.
Without communication this mess will never be solved, so please come out of the corner and reach out and we can discuss this problem in more depth.
Thank you all for helping out, especially the flutter developers which have helped users out in the comments. That you to the two maintainers who kept this up to date and tried to package flutter in its current state, but unfortunately it is not going to work (due to flutter needing read and write permissions to its own directory.
Flutter devs, would be appreciated if you could find the time to join #archlinux-aur. Maybe form a channel to fix this package, who knows.
Take care all,
Polarian
I've published a flutter-engine and flutter-engine-google-bin package. The former compile the flutter engine from source. This will take a lot of ram and time depending on your machine and if you compile everything into ram. Install the later if you want to use the pre-compiled binaries from google. See my localsend package for an example on how to use. These are only makedepends, apps will have all they need to run.
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.