Jump to content

Flutter: Difference between revisions

5 bytes removed ,  29 January 2023
m
Removed non-functioning build setups
imported>ANicon111
m (Removed non-functioning build setups)
imported>ANicon111
m (Removed non-functioning build setups)
Line 1: Line 1:
== Developement enviroment ==
== Developement enviroment ==


To be able to build flutter apps, you need to add the platform-specific dependencies to your environment. This may be done by running <code>nix-shell</code> using a shell.nix configuration:
To be able to build flutter apps, you need to add the platform-specific dependencies to your environment. This may be done by running <code>nix-shell</code> using this shell.nix configuration:


<syntaxhighlight lang=nix>
<syntaxhighlight lang=nix>
Line 17: Line 17:
</syntaxhighlight>
</syntaxhighlight>


This file uses the tool android-nixpkgs made by tadfisher to get all the android dependencies (be sure to change the package versions/branch to your needs; they can be found here: https://github.com/tadfisher/android-nixpkgs/tree/main/channels )
This uses the tool android-nixpkgs made by tadfisher to get all the android dependencies (be sure to change the package versions/branch to your needs; they can be found here: https://github.com/tadfisher/android-nixpkgs/tree/main/channels )


Also be sure to run <code>avdmanager create avd -n "Android" -k "system-images;android-31;default;x86_64"</code> to create an android emulator
Also be sure to run <code>avdmanager create avd -n "Android" -k "system-images;android-31;default;x86_64"</code> to add an android emulator
Anonymous user