6
Creating flutter projects
Hidenori Matsubayashi edited this page 2023-08-30 13:25:52 +00:00

Create a new flutter project

Flutter app project:

flutter-elinux create <your_app_project_name>

Flutter plugin project:

flutter-elinux create --platforms elinux --template plugin <your_plugin_project_name>

After creating the plugin template, you need to modify pubspec.yaml file. Open it and replace the some_platform: map with elinux:

elinux:
  pluginClass: PluginNamePlugin

Use existing official flutter projects

If you would like to use flutter for elinux for existing flutter projects, you need to prepate elinux directory.

cd <your_existing_flutter_project>
flutter-elinux create .