Skip to content

contrun/nix-flutter-project-template

Repository files navigation

Project demonstrating how to build flutter project with devenv and nix

Getting Started

This projects use the following softwares to build a flutter project

In order to build the flutter project and run the app in an android emulator, you need to install nix and direnv, and then run the following commands

direnv allow # Allow direnv to use devenv defined in flake.nix
create-avd # Create an Android Virtual Device (AVD)
devenv up emulator # Start the Android emulator

Now run flutter run in another terminal, you should see you app started in the Android terminal.

Special thanks to @hatch01, for pointing out how to make nix and flutter work together in Documentation: Flutter Flake · Issue #267263 · NixOS/nixpkgs.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published