Skip to content

Latest commit

 

History

History
61 lines (61 loc) · 1.61 KB

README.org

File metadata and controls

61 lines (61 loc) · 1.61 KB

<PROJECT-NAME>

TODOS

SETUP

flake XOR

create flake in PROJECT-DIR
nix flake new --template github:waotzi/flutter-flake ./PROJECT-DIR
nix flake new --template github:waotzi/flutter-flake/<TAG> ./PROJECT-DIR
initialize flake in current directory
nix flake init --template github:waotzi/flutter-flake
nix flake init --template github:waotzi/flutter-flake/<TAG>

enable direnv

direnv allow

flutter

flutter create --project-name <PROJECTNAME> .

reload direnv

direnv reload

use unsafe repository

get path to flutter
flutter --version
make direnv git-safe XOR
command
git config --global --add safe.directory <PATH-FROM-FLUTTER--VERSION>
config-entry
[safe]
	# directory = /nix/store/amicdraczf6798z2vcg0j9q7mid0365m-flutter-3.0.4-unwrapped
	directory = <PATH-FROM-FLUTTER--VERSION>

update a .gitignore

echo -e "\n/.direnv/\n**/IGNORE/" >> .gitignore

fix <PROJECT-*>

rg -e '<PROJECT-.*>'
sd '<PROJECT-NAME>'        '<ACTUAL-PROJECT-NAME>'        *
sd '<PROJECT-DESCRIPTION>' '<ACTUAL-PROJECT-DESCRIPTION>' *

RUN

flutter run

ERLEDIGTES