Install using apt-get
Perform the following one-time setup:

 sudo apt-get update
 sudo apt-get install apt-transport-https
 wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo gpg --dearmor -o /usr/share/keyrings/dart.gpg
 echo 'deb [signed-by=/usr/share/keyrings/dart.gpg arch=amd64] https://storage.googleapis.com/download.dartlang.org/linux/debian stable main' | sudo tee /etc/apt/sources.list.d/dart_stable.list

Then install the Dart SDK:

 sudo apt-get update
 sudo apt-get install dart
Install a Debian package
Alternatively, download Dart SDK as a Debian package in the .deb package format.

Modify PATH for access to all Dart binaries
After installing the SDK, add its bin directory to your PATH. For example, use the following command to change PATH in your active terminal session:

 export PATH="$PATH:/usr/lib/dart/bin"
To change the PATH for future terminal sessions, use a command like this:

 echo 'export PATH="$PATH:/usr/lib/dart/bin"' >> ~/.profileflutter doctor -vInstall using apt-get
Perform the following one-time setup:

 sudo apt-get update
 sudo apt-get install apt-transport-https
 wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo gpg --dearmor -o /usr/share/keyrings/dart.gpg
 echo 'deb [signed-by=/usr/share/keyrings/dart.gpg arch=amd64] https://storage.googleapis.com/download.dartlang.org/linux/debian stable main' | sudo tee /etc/apt/sources.list.d/dart_stable.list

Then install the Dart SDK:

 sudo apt-get update
 sudo apt-get install dart
Install a Debian package
Alternatively, download Dart SDK as a Debian package in the .deb package format.

Modify PATH for access to all Dart binaries
After installing the SDK, add its bin directory to your PATH. For example, use the following command to change PATH in your active terminal session:

 export PATH="$PATH:/usr/lib/dart/bin"
To change the PATH for future terminal sessions, use a command like this:

 echo 'export PATH="$PATH:/usr/lib/dart/bin"' >> ~/.profile

I had the same problem after importing a flutter project from git. These are
the steps to solve the problem.

1. Inside Android Studio File->Settings->Language & Framework->Flutter

2. Choose flutter SDK path: the first time we install flutter, we choose the
location where the flutter should be installed. Choose this location.

3. Click OK and the android studio will refresh. Carry on if the problem is
solved.

4. If you are still stuck with the error.

5. Goto this link and install Dart. (https://flutter.io/get-started/install/)

6. Goto the same place in settings, ..Language & Framework->Dart and chose the
SDK location. This solved the issues for me.

Shell/Bash相关代码片段

install openmpi ubuntu

remove anydesk from startup linux

stabalize a linux shell with one python command

move images without registry

composer drupal installation

remove bash history forever

docker compose pull latest image

windows create shortcut that rins cmd

ubuntu cannot play mp4 video

install jupyter kernel

wsl networking becomes slow windows 10

dynamic python aliases on mac

git remove file from gitirgnore

croc zsh autocomplete fix

src refspec does not match any : git push error

cannot install lap

npm status codes

pm2 in cronjob

convert raw to qcow2 qemu-img

add passphrase to ssh key

linux flush write cache

connect to gitlab without password using ssh

alias linux command

install dbt

longhorn in eks error install open iscsi

npm install prod only

permission denied: ./

vite react install

gnome workspace rename

connect to wifi using linux terminal

B188E2B695BD4743

trouble.nvim

sign_and_send_pubkey: signing failed for ed25519

how to kill all the processon gpu in linux

selenium auto install chrome driver

sed replace space with newline

how to reoload bashrc

Git Cheat sheet

reset migrations and db prisma

prisma force restart

shutdown server remote

install hiddify

redo git commit

how to install wine in fedora39

docker alpine

apt packages kept back

git revert last commit after push

crontab restart

crontab start

crontab stop

easily create https localhost

allow trafic to specific port from host ufw rule

update unturned server

Ionic - Sync changes to android/ios platforms

Ionic - Generate www folder

git bash change php version

how to enable gui debian

how to disable gui debian

cassandra download zip

github login ssh

math, math.js, mathjs

how to set alias in debian

how to move changes to another branch git

npm stripe

ffprobe for video resolution

npm not working

shell parameter expansion

shell string manipulation

shell manipulation

download skype deb

fish shell batch process file

lualatex install

git get folder from one repo to another

create virtual hosts in rocky linux

ubuntu docker image

dotnet remove package from cache

brew cdk not found

STEAM LINUX APEX NOT WORKING

unrar password protected rar file

alias pip to pip3