Package Details: flutter 3.7.1-1

Git Clone URL: https://aur.archlinux.org/flutter.git (read-only, click to copy)
Package Base: flutter
Description: A new mobile app SDK to help developers and designers build modern mobile apps for iOS and Android.
Upstream URL: https://flutter.dev
Keywords: android fuchsia ios mobile sdk
Licenses: custom, BSD, CCPL
Submitter: flipflop97
Maintainer: frealgagu (WithTheBraid)
Last Packager: WithTheBraid
Votes: 106
Popularity: 1.80
First Submitted: 2017-06-05 21:03 (UTC)
Last Updated: 2023-02-04 11:59 (UTC)

Dependencies (13)

Sources (3)

Pinned Comments

cfujino commented on 2021-11-12 20:52 (UTC)

they put Dart in the Flutter archive for some reason

Yes, the reason is that breaking changes to the Dart SDK are landed with the corresponding fixes to the Flutter SDK. Also, you cannot "remove it" without significantly altering the Flutter tooling. The Flutter CLI tool ensures that the pinned version of the Dart SDK is present in its binary cache.

If you want to use a version of Flutter without depending on Flutter's pinned version of the Dart SDK, you would need to maintain a separate fork of the Flutter SDK, that tracks the breaking changes of the Arch Dart package, and has an updated Flutter tool that doesn't assume it controls the Dart installation.

frealgagu commented on 2020-12-05 22:36 (UTC)

I maintain the latest built package at:

https://github.com/frealgagu/archlinux.flutter/releases/

Latest Comments

1 2 3 4 5 6 .. 11 Next › Last »

dangarbri commented on 2023-01-24 00:55 (UTC)

The sha256sum for flutter-3.3.10 is out of date.

The current sha256 for the flutter sdk is 4ab54d3f93ba6e0308b3176ab81843c9d3d44b126e27204aa96a339601d45aff

xeruf commented on 2022-12-16 14:06 (UTC)

Yeah I can just blindly follow the advice, but can't this be avoided?

Also, upgrading fails due to the .git dir, does that really need to be copied into /opt at all?

error: failed to commit transaction (conflicting files)
flutter: /opt/flutter/.git/logs/refs/remotes/origin/115574-android-selection-haptics-feedback-should-respect
-android-settings exists in filesystem
flutter: /opt/flutter/.git/logs/refs/remotes/origin/beta exists in filesystem
flutter: /opt/flutter/.git/logs/refs/remotes/origin/dependabot/docker/dev/ci/docker_linux/ubuntu-6fec506 exi
sts in filesystem
flutter: /opt/flutter/.git/logs/refs/remotes/origin/dependabot/github_actions/actions/checkout-3.2.0 exists 
in filesystem
flutter: /opt/flutter/.git/logs/refs/remotes/origin/dependabot/github_actions/github/codeql-action-2.1.37 ex
ists in filesystem
flutter: /opt/flutter/.git/logs/refs/remotes/origin/fix-isCanvasKit-bool exists in filesystem
flutter: /opt/flutter/.git/logs/refs/remotes/origin/flutter-3.2-candidate.5 exists in filesystem
flutter: /opt/flutter/.git/logs/refs/remotes/origin/flutter-3.6-candidate.10 exists in filesystem
flutter: /opt/flutter/.git/logs/refs/remotes/origin/flutter-3.6-candidate.11 exists in filesystem
flutter: /opt/flutter/.git/logs/refs/remotes/origin/flutter-3.6-candidate.12 exists in filesystem
flutter: /opt/flutter/.git/logs/refs/remotes/origin/flutter-3.6-candidate.13 exists in filesystem
flutter: /opt/flutter/.git/logs/refs/remotes/origin/flutter-3.6-candidate.7 exists in filesystem
flutter: /opt/flutter/.git/logs/refs/remotes/origin/flutter-3.6-candidate.8 exists in filesystem
flutter: /opt/flutter/.git/logs/refs/remotes/origin/flutter-3.6-candidate.9 exists in filesystem
flutter: /opt/flutter/.git/logs/refs/remotes/origin/flutter-3.7-candidate.0 exists in filesystem
flutter: /opt/flutter/.git/logs/refs/remotes/origin/flutter-3.7-candidate.1 exists in filesystem
flutter: /opt/flutter/.git/logs/refs/remotes/origin/flutter-3.7-candidate.2 exists in filesystem
flutter: /opt/flutter/.git/logs/refs/remotes/origin/flutter-3.7-candidate.3 exists in filesystem
flutter: /opt/flutter/.git/logs/refs/remotes/origin/flutter-3.7-candidate.4 exists in filesystem
flutter: /opt/flutter/.git/logs/refs/remotes/origin/flutter-3.7-candidate.5 exists in filesystem
flutter: /opt/flutter/.git/logs/refs/remotes/origin/flutter-3.7-candidate.6 exists in filesystem
flutter: /opt/flutter/.git/logs/refs/remotes/origin/flutter-3.7-candidate.7 exists in filesystem
flutter: /opt/flutter/.git/logs/refs/remotes/origin/flutter-3.7-candidate.8 exists in filesystem
flutter: /opt/flutter/.git/logs/refs/remotes/origin/flutter-3.7-candidate.9 exists in filesystem
flutter: /opt/flutter/.git/logs/refs/remotes/origin/fuchsia_r51 exists in filesystem
flutter: /opt/flutter/.git/logs/refs/remotes/origin/revert-115009-fix_linux_remapped_capslock_throws exists 
in filesystem
flutter: /opt/flutter/.git/logs/refs/remotes/origin/revert-116798-run_log_spew exists in filesystem
flutter: /opt/flutter/.git/logs/refs/remotes/origin/stable exists in filesystem
flutter: /opt/flutter/.git/refs/remotes/origin/115574-android-selection-haptics-feedback-should-respect-andr
oid-settings exists in filesystem
flutter: /opt/flutter/.git/refs/remotes/origin/beta exists in filesystem
flutter: /opt/flutter/.git/refs/remotes/origin/dependabot/docker/dev/ci/docker_linux/ubuntu-6fec506 exists i
n filesystem
flutter: /opt/flutter/.git/refs/remotes/origin/dependabot/github_actions/actions/checkout-3.2.0 exists in fi
lesystem
flutter: /opt/flutter/.git/refs/remotes/origin/dependabot/github_actions/github/codeql-action-2.1.37 exists 
in filesystem
flutter: /opt/flutter/.git/refs/remotes/origin/fix-isCanvasKit-bool exists in filesystem
flutter: /opt/flutter/.git/refs/remotes/origin/flutter-3.2-candidate.5 exists in filesystem
flutter: /opt/flutter/.git/refs/remotes/origin/flutter-3.6-candidate.10 exists in filesystem
flutter: /opt/flutter/.git/refs/remotes/origin/flutter-3.6-candidate.11 exists in filesystem
flutter: /opt/flutter/.git/refs/remotes/origin/flutter-3.6-candidate.12 exists in filesystem
flutter: /opt/flutter/.git/refs/remotes/origin/flutter-3.6-candidate.13 exists in filesystem
flutter: /opt/flutter/.git/refs/remotes/origin/flutter-3.6-candidate.7 exists in filesystem
flutter: /opt/flutter/.git/refs/remotes/origin/flutter-3.6-candidate.8 exists in filesystem
[...]
Errors occurred, no packages were upgraded.
removing untracked AUR files from cache...

ZorinArch commented on 2022-11-24 05:30 (UTC)

@xeruf execute git config --global --add safe.directory /opt/flutter

OR add this lines to .gitconfig file

[safe]
    directory = /opt/flutter

xeruf commented on 2022-11-17 18:08 (UTC)

After adding my user to flutterusers, I still get this:

❯ flutter doctor
fatal: detected dubious ownership in repository at '/opt/flutter'
To add an exception for this directory, call:

    git config --global --add safe.directory /opt/flutter
Doctor summary (to see all details, run flutter doctor -v):
Failed to find the latest git commit date: VersionCheckError: Command exited with code 128: git -c
log.showSignature=false log HEAD -n 1 --pretty=format:%ad --date=iso
Standard out: 
Standard error: fatal: detected dubious ownership in repository at '/opt/flutter'
To add an exception for this directory, call:

    git config --global --add safe.directory /opt/flutter

Returning 1970-01-01 01:00:00.000 instead.
[!] Flutter (Channel unknown, 0.0.0-unknown, on Arch Linux 6.0.8-arch1-1, locale en_IE.UTF-8)
    ! Flutter version 0.0.0-unknown on channel unknown at /opt/flutter
    ! Upstream repository unknown

xeruf commented on 2022-11-16 23:37 (UTC)

After installation I get this confusing error:

❯ flutter run .
fatal: detected dubious ownership in repository at '/opt/flutter'
To add an exception for this directory, call:

    git config --global --add safe.directory /opt/flutter
rm: cannot remove '/opt/flutter/version': Permission denied

eclairevoyant commented on 2022-11-11 01:45 (UTC) (edited on 2022-11-11 02:30 (UTC) by eclairevoyant)

This doesn't actually build anything. Either the name should be updated to -bin or this package should be corrected.

See this and this for compilation steps.

Also if you're going to the effort of messing with permissions, you might as well go all the way; for find "${pkgdir}/opt/${pkgname}" -type d -exec chmod a+rx {} + you can change a+rx to a+rx,g+w, since it will avoid noisy warnings during update of this package and will align with the whole purpose of creating the flutterusers group.

And as has been said before, when bumping pkgver then pkgrel should be reset to 1.

whoami commented on 2022-10-23 16:48 (UTC)

u should reset pkgrel to 1 if you update pkgver https://wiki.archlinux.org/title/PKGBUILD#pkgrel

mystiquewolf commented on 2022-10-20 18:51 (UTC) (edited on 2022-10-20 19:04 (UTC) by mystiquewolf)

Flutter failed to create a directory at "/opt/flutter/bin/cache/downloads".

@orzogc Adding to flutterusers doesn't help. EDIT: Nevermind. Had to logout and login back again.

ZorinArch commented on 2022-10-07 16:39 (UTC)

please update pkgrel=1

SpotlightKid commented on 2022-09-01 19:10 (UTC)

The terminal-gymnastics in the flutter.install script won't work properly in non-terminal environments (e.g. in Pamac):

tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
Flutter was installed on /opt/flutter
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified

tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
In case you encounter problems using Flutter as regular user, add your user into the group flutterusers:
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
gpasswd -a ${USER} flutterusers
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified

tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
Re-login your terminal in to the group flutterusers:
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
newgrp flutterusers
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified

tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
Run the following command to see if there are any dependencies you need to install to complete the setup (for verbose output, add the -v flag):
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
flutter doctor