Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 4bf074a

Browse files
committed
README
1 parent 44c9077 commit 4bf074a

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

packages/share/README.md

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,27 @@
11
# share
22

3-
A new flutter plugin project.
3+
A Flutter plugin to share content from your Flutter app via the platform's
4+
share dialog.
45

5-
## Getting Started
6+
Wraps the ACTION_SEND Intent on Android and UIActivityViewController
7+
on iOS.
68

7-
For help getting started with Flutter, view our online
8-
[documentation](http://flutter.io/).
9+
## Usage
10+
11+
To use, first add `share` as a [dependency in your pubspec.yaml](https://flutter.io/platform-plugins/).
12+
```yaml
13+
dependencies:
14+
flutter:
15+
sdk: flutter
16+
share: ^0.1.0
17+
```
18+
19+
Import the library via
20+
```dart
21+
import 'package:share/share.dart';
22+
```
23+
24+
Then invoke the static `share` method anywhere in your Dart code
25+
```dart
26+
share('check out my website https://example.com');
27+
```

0 commit comments

Comments
 (0)