Skip to content

Creating flutter projects

Hidenori Matsubayashi edited this page Jul 30, 2021 · 6 revisions

1. Create a new flutter project

Flutter app project

$ flutter-elinux create <your_app_project_name>

Flutter plugin project

$ flutter-elinux create -t 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

2. 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 .