README.md 896 字节
Newer Older
1 2
# Desktop Plugins

S
stuartmorgan 已提交
3 4
This directory contains plugins that prototype functionality that will likely
either become part of Flutter itself, or become officially supported plugins.
5

S
stuartmorgan 已提交
6 7 8
## Using Plugins

Since the plugins in this repository are not intended to live here long term,
9 10
these plugins are not published on pub.dev like normal Flutter plugins. Instead,
you should include them directly from this repository:
11 12 13 14

```
dependencies:
  ...
15
  file_chooser:
S
stuartmorgan 已提交
16 17
    git:
      url: git://github.com/google/flutter-desktop-embedding.git
18
      path: plugins/file_chooser
S
stuartmorgan 已提交
19
      ref: INSERT_HASH_HERE
20 21
```

S
stuartmorgan 已提交
22 23
Replace `INSERT_HASH_HERE` with the hash of commit you want to pin to,
usually the latest commit to the repository at the time you add the plugin.
24
While omitting the `ref` is possible, it is **strongly** discouraged, as
S
stuartmorgan 已提交
25
without it any breaking change to the plugin would break your project
26
without warning.