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

Commit e3e38db

Browse files
authored
[url_launcher] Update deps and docs in url_launcher_web (#2289)
v 0.1.0
1 parent 8b1f2f0 commit e3e38db

File tree

3 files changed

+21
-13
lines changed

3 files changed

+21
-13
lines changed

packages/url_launcher/url_launcher_web/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.1.0
2+
3+
- Update docs and pubspec.
4+
15
# 0.0.2
26

37
- Switch to using `url_launcher_platform_interface`.

packages/url_launcher/url_launcher_web/README.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,27 @@ The web implementation of [`url_launcher`][1].
44

55
## Usage
66

7+
### Import the package
78
To use this plugin in your Flutter Web app, simply add it as a dependency in
8-
your pubspec using a `git` dependency. This is only temporary: in the future
9-
we hope to make this package an "endorsed" implementation of `url_launcher`,
10-
so that it is automatically included in your Flutter Web app when you depend
11-
on `package:url_launcher`.
9+
your pubspec alongside the base `url_launcher` plugin.
10+
11+
_(This is only temporary: in the future we hope to make this package an
12+
"endorsed" implementation of `url_launcher`, so that it is automatically
13+
included in your Flutter Web app when you depend on `package:url_launcher`.)_
14+
15+
This is what the above means to your `pubspec.yaml`:
1216

1317
```yaml
18+
...
1419
dependencies:
20+
...
1521
url_launcher: ^5.1.4
16-
url_launcher_web:
17-
git:
18-
url: git://github.com/flutter/plugins.git
19-
path: packages/url_launcher/url_launcher_web
22+
url_launcher_web: ^0.1.0
23+
...
2024
```
2125

26+
### Use the plugin
2227
Once you have the `url_launcher_web` dependency in your pubspec, you should
2328
be able to use `package:url_launcher` as normal.
2429

25-
[1]: ../url_launcher
30+
[1]: ../url_launcher/url_launcher

packages/url_launcher/url_launcher_web/pubspec.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: url_launcher_web
22
description: Web platform implementation of url_launcher
33
author: Flutter Team <[email protected]>
44
homepage: https://github.com/flutter/plugins/tree/master/packages/url_launcher/url_launcher_web
5-
version: 0.0.2
5+
version: 0.1.0
66

77
flutter:
88
plugin:
@@ -12,18 +12,17 @@ flutter:
1212
fileName: url_launcher_web.dart
1313

1414
dependencies:
15+
url_launcher_platform_interface: ^1.0.1
1516
flutter:
1617
sdk: flutter
1718
flutter_web_plugins:
1819
sdk: flutter
1920
meta: ^1.1.7
20-
url_launcher_platform_interface: ^1.0.1
2121

2222
dev_dependencies:
2323
flutter_test:
2424
sdk: flutter
25-
url_launcher:
26-
path: ../url_launcher
25+
url_launcher: ^5.2.5
2726

2827
environment:
2928
sdk: ">=2.0.0-dev.28.0 <3.0.0"

0 commit comments

Comments
 (0)