From ef9432d5629ce6c500d21e9182ddd3a7d31d7f4b Mon Sep 17 00:00:00 2001 From: balvinderz Date: Wed, 14 Oct 2020 17:16:13 +0530 Subject: [PATCH 1/8] introduce share_plus_web --- packages/share_plus_web/CHANGELOG.md | 3 ++ packages/share_plus_web/LICENSE | 27 +++++++++++++ packages/share_plus_web/README.md | 6 +++ .../share_plus_web/lib/share_plus_web.dart | 39 +++++++++++++++++++ packages/share_plus_web/pubspec.yaml | 33 ++++++++++++++++ 5 files changed, 108 insertions(+) create mode 100644 packages/share_plus_web/CHANGELOG.md create mode 100644 packages/share_plus_web/LICENSE create mode 100644 packages/share_plus_web/README.md create mode 100644 packages/share_plus_web/lib/share_plus_web.dart create mode 100644 packages/share_plus_web/pubspec.yaml diff --git a/packages/share_plus_web/CHANGELOG.md b/packages/share_plus_web/CHANGELOG.md new file mode 100644 index 0000000000..a6ea2c9a5d --- /dev/null +++ b/packages/share_plus_web/CHANGELOG.md @@ -0,0 +1,3 @@ +# 0.0.1 + +- Initial open-source release. diff --git a/packages/share_plus_web/LICENSE b/packages/share_plus_web/LICENSE new file mode 100644 index 0000000000..c89293372c --- /dev/null +++ b/packages/share_plus_web/LICENSE @@ -0,0 +1,27 @@ +// Copyright 2017 The Chromium Authors. All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/packages/share_plus_web/README.md b/packages/share_plus_web/README.md new file mode 100644 index 0000000000..7146288e20 --- /dev/null +++ b/packages/share_plus_web/README.md @@ -0,0 +1,6 @@ +# Share Plus Web + +[![Flutter Community: sensors_plus_web](https://fluttercommunity.dev/_github/header/share_plus_web)](https://github.com/fluttercommunity/community) + + +The Web implementation of [`share_plus`](https://pub.dev/packages/share_plus). diff --git a/packages/share_plus_web/lib/share_plus_web.dart b/packages/share_plus_web/lib/share_plus_web.dart new file mode 100644 index 0000000000..5669154e2f --- /dev/null +++ b/packages/share_plus_web/lib/share_plus_web.dart @@ -0,0 +1,39 @@ +import 'dart:html' as html; +import 'dart:ui'; + +import 'package:flutter_web_plugins/flutter_web_plugins.dart'; +import 'package:share_plus_platform_interface/share_plus_platform_interface.dart'; +import 'package:url_launcher/url_launcher.dart'; + +/// The web implementation of [SharePlatform]. +class SharePlugin extends SharePlatform { + /// Registers this class as the default instance of [SharePlatform]. + static void registerWith(Registrar registrar) { + SharePlatform.instance = SharePlatform(); + } + + final _navigator = html.window.navigator; + + Future share( + String text, { + String subject, + Rect sharePositionOrigin, + }) async { + try { + await _navigator.share({'title': subject, 'text': text}); + } catch (e) { + //Navigator is not available or the webPage is not served on https + final uri = Uri.encodeFull('mailto:?subject=$subject&body=$text'); + return launch(uri); + } + } + + @override + Future shareFiles(List paths, + {List mimeTypes, + String subject, + String text, + Rect sharePositionOrigin}) { + throw UnimplementedError('shareFiles() has not been implemented on Web.'); + } +} diff --git a/packages/share_plus_web/pubspec.yaml b/packages/share_plus_web/pubspec.yaml new file mode 100644 index 0000000000..121bdbbe22 --- /dev/null +++ b/packages/share_plus_web/pubspec.yaml @@ -0,0 +1,33 @@ +name: share_plus_web +description: Web platform implementation of share_plus +homepage: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/share_plus_web +# 0.1.y+z is compatible with 1.0.0, if you land a breaking change bump +# the version to 2.0.0. +# See more details: https://github.com/flutter/flutter/wiki/Package-migration-to-1.0.0 +version: 0.0.1 + +flutter: + plugin: + platforms: + web: + pluginClass: SharePlugin + fileName: url_launcher_web.dart + +dependencies: + share_plus_platform_interface: ^1.1.0 + url_launcher: ^5.2.5 + flutter: + sdk: flutter + flutter_web_plugins: + sdk: flutter + meta: ^1.1.7 + +dev_dependencies: + flutter_test: + sdk: flutter + pedantic: ^1.8.0 + mockito: ^4.1.1 + +environment: + sdk: ">=2.2.0 <3.0.0" + flutter: ">=1.10.0 <2.0.0" From 182e54bd0ae42a76b9a6e68971ab978a91ba4f1d Mon Sep 17 00:00:00 2001 From: balvinderz Date: Wed, 14 Oct 2020 20:06:14 +0530 Subject: [PATCH 2/8] [WIP] adding integration test --- .../share_plus_web/lib/share_plus_web.dart | 7 ++++- packages/share_plus_web/pubspec.yaml | 1 + packages/share_plus_web/test/lib/main.dart | 22 +++++++++++++++ packages/share_plus_web/test/pubspec.yaml | 21 +++++++++++++++ .../share_plus_web_integration.dart | 27 +++++++++++++++++++ packages/share_plus_web/test/web/index.html | 10 +++++++ 6 files changed, 87 insertions(+), 1 deletion(-) create mode 100644 packages/share_plus_web/test/lib/main.dart create mode 100644 packages/share_plus_web/test/pubspec.yaml create mode 100644 packages/share_plus_web/test/test_driver/share_plus_web_integration.dart create mode 100644 packages/share_plus_web/test/web/index.html diff --git a/packages/share_plus_web/lib/share_plus_web.dart b/packages/share_plus_web/lib/share_plus_web.dart index 5669154e2f..1c4cfe8f71 100644 --- a/packages/share_plus_web/lib/share_plus_web.dart +++ b/packages/share_plus_web/lib/share_plus_web.dart @@ -2,6 +2,7 @@ import 'dart:html' as html; import 'dart:ui'; import 'package:flutter_web_plugins/flutter_web_plugins.dart'; +import 'package:meta/meta.dart'; import 'package:share_plus_platform_interface/share_plus_platform_interface.dart'; import 'package:url_launcher/url_launcher.dart'; @@ -12,7 +13,11 @@ class SharePlugin extends SharePlatform { SharePlatform.instance = SharePlatform(); } - final _navigator = html.window.navigator; + final _navigator; + + /// A constructor that allows tests to override the window object used by the plugin. + SharePlugin({@visibleForTesting html.Navigator debugNavigator}) + : _navigator = debugNavigator ?? html.window.navigator; Future share( String text, { diff --git a/packages/share_plus_web/pubspec.yaml b/packages/share_plus_web/pubspec.yaml index 121bdbbe22..7307ba564b 100644 --- a/packages/share_plus_web/pubspec.yaml +++ b/packages/share_plus_web/pubspec.yaml @@ -27,6 +27,7 @@ dev_dependencies: sdk: flutter pedantic: ^1.8.0 mockito: ^4.1.1 + integration_test: any environment: sdk: ">=2.2.0 <3.0.0" diff --git a/packages/share_plus_web/test/lib/main.dart b/packages/share_plus_web/test/lib/main.dart new file mode 100644 index 0000000000..1041520457 --- /dev/null +++ b/packages/share_plus_web/test/lib/main.dart @@ -0,0 +1,22 @@ +// Copyright 2013 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +void main() { + runApp(MyApp()); +} + +/// App for testing +class MyApp extends StatefulWidget { + @override + _MyAppState createState() => _MyAppState(); +} + +class _MyAppState extends State { + @override + Widget build(BuildContext context) { + return Text('Testing... Look at the console output for results!'); + } +} diff --git a/packages/share_plus_web/test/pubspec.yaml b/packages/share_plus_web/test/pubspec.yaml new file mode 100644 index 0000000000..eb74b668a9 --- /dev/null +++ b/packages/share_plus_web/test/pubspec.yaml @@ -0,0 +1,21 @@ +name: regular_integration_tests +publish_to: none + +environment: + sdk: ">=2.2.2 <3.0.0" + +dependencies: + share_plus_web: + path: ../ + flutter: + sdk: flutter + +dev_dependencies: + flutter_driver: + sdk: flutter + flutter_test: + sdk: flutter + http: ^0.12.2 + mockito: ^4.1.1 + + integration_test: any diff --git a/packages/share_plus_web/test/test_driver/share_plus_web_integration.dart b/packages/share_plus_web/test/test_driver/share_plus_web_integration.dart new file mode 100644 index 0000000000..643f98715d --- /dev/null +++ b/packages/share_plus_web/test/test_driver/share_plus_web_integration.dart @@ -0,0 +1,27 @@ +import 'package:flutter_test/flutter_test.dart'; +import 'package:integration_test/integration_test.dart'; +import 'package:mockito/mockito.dart'; +import 'dart:html' as html; + +import 'package:share_plus_web/share_plus_web.dart'; + + +class _MockWindow extends Mock implements html.Window {} +class _MockNavigator extends Mock implements html.Navigator {} +void main() { + IntegrationTestWidgetsFlutterBinding.ensureInitialized(); + group('SharePlugin',(){ + _MockWindow mockWindow; + _MockNavigator mockNavigator; + + SharePlugin plugin; + + setUp(() { + mockWindow = _MockWindow(); + mockNavigator = _MockNavigator(); + when(mockWindow.navigator).thenReturn(mockNavigator); + + plugin = SharePlugin(debugNavigator: mockNavigator); + }); + }); +} diff --git a/packages/share_plus_web/test/web/index.html b/packages/share_plus_web/test/web/index.html new file mode 100644 index 0000000000..143be5527d --- /dev/null +++ b/packages/share_plus_web/test/web/index.html @@ -0,0 +1,10 @@ + + + + + example + + + + + From b391e6e162418f2371dd66b09be010437c384ce3 Mon Sep 17 00:00:00 2001 From: balvinderz Date: Wed, 14 Oct 2020 21:09:43 +0530 Subject: [PATCH 3/8] added integration test --- packages/share_plus_web/pubspec.yaml | 2 +- packages/share_plus_web/test/pubspec.yaml | 6 +++--- .../test_driver/share_plus_web_integration.dart | 13 +++++++++++-- .../share_plus_web_integration_test.dart | 7 +++++++ 4 files changed, 22 insertions(+), 6 deletions(-) create mode 100644 packages/share_plus_web/test/test_driver/share_plus_web_integration_test.dart diff --git a/packages/share_plus_web/pubspec.yaml b/packages/share_plus_web/pubspec.yaml index 7307ba564b..42363b4579 100644 --- a/packages/share_plus_web/pubspec.yaml +++ b/packages/share_plus_web/pubspec.yaml @@ -11,7 +11,7 @@ flutter: platforms: web: pluginClass: SharePlugin - fileName: url_launcher_web.dart + fileName: share_plus_web.dart dependencies: share_plus_platform_interface: ^1.1.0 diff --git a/packages/share_plus_web/test/pubspec.yaml b/packages/share_plus_web/test/pubspec.yaml index eb74b668a9..97e4f3d0ed 100644 --- a/packages/share_plus_web/test/pubspec.yaml +++ b/packages/share_plus_web/test/pubspec.yaml @@ -5,8 +5,7 @@ environment: sdk: ">=2.2.2 <3.0.0" dependencies: - share_plus_web: - path: ../ + flutter: sdk: flutter @@ -15,7 +14,8 @@ dev_dependencies: sdk: flutter flutter_test: sdk: flutter + share_plus_web: + path: ../ http: ^0.12.2 mockito: ^4.1.1 - integration_test: any diff --git a/packages/share_plus_web/test/test_driver/share_plus_web_integration.dart b/packages/share_plus_web/test/test_driver/share_plus_web_integration.dart index 643f98715d..3a2854c30b 100644 --- a/packages/share_plus_web/test/test_driver/share_plus_web_integration.dart +++ b/packages/share_plus_web/test/test_driver/share_plus_web_integration.dart @@ -5,12 +5,13 @@ import 'dart:html' as html; import 'package:share_plus_web/share_plus_web.dart'; - class _MockWindow extends Mock implements html.Window {} + class _MockNavigator extends Mock implements html.Navigator {} + void main() { IntegrationTestWidgetsFlutterBinding.ensureInitialized(); - group('SharePlugin',(){ + group('SharePlugin', () { _MockWindow mockWindow; _MockNavigator mockNavigator; @@ -23,5 +24,13 @@ void main() { plugin = SharePlugin(debugNavigator: mockNavigator); }); + group('share', () { + testWidgets('can share url', (WidgetTester _) async { + expect(plugin.share('https://google.com'), completes); + }); + testWidgets('can share text with subject', (WidgetTester _) async { + expect(plugin.share('flutter', subject: 'test'), completes); + }); + }); }); } diff --git a/packages/share_plus_web/test/test_driver/share_plus_web_integration_test.dart b/packages/share_plus_web/test/test_driver/share_plus_web_integration_test.dart new file mode 100644 index 0000000000..64e2248a4f --- /dev/null +++ b/packages/share_plus_web/test/test_driver/share_plus_web_integration_test.dart @@ -0,0 +1,7 @@ +// Copyright 2019 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:integration_test/integration_test_driver.dart'; + +Future main() async => integrationDriver(); From 86da8aed53d6d5e99a928d615fd0bbbc4e42d5b0 Mon Sep 17 00:00:00 2001 From: balvinderz Date: Wed, 14 Oct 2020 21:11:53 +0530 Subject: [PATCH 4/8] change any to ^0.9.2 --- packages/share_plus_web/pubspec.yaml | 2 +- packages/share_plus_web/test/pubspec.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/share_plus_web/pubspec.yaml b/packages/share_plus_web/pubspec.yaml index 42363b4579..40f9738909 100644 --- a/packages/share_plus_web/pubspec.yaml +++ b/packages/share_plus_web/pubspec.yaml @@ -27,7 +27,7 @@ dev_dependencies: sdk: flutter pedantic: ^1.8.0 mockito: ^4.1.1 - integration_test: any + integration_test: ^0.9.2 environment: sdk: ">=2.2.0 <3.0.0" diff --git a/packages/share_plus_web/test/pubspec.yaml b/packages/share_plus_web/test/pubspec.yaml index 97e4f3d0ed..7004d53a28 100644 --- a/packages/share_plus_web/test/pubspec.yaml +++ b/packages/share_plus_web/test/pubspec.yaml @@ -18,4 +18,4 @@ dev_dependencies: path: ../ http: ^0.12.2 mockito: ^4.1.1 - integration_test: any + integration_test: ^0.9.2 From b48c9692b64b08911d83d49039df27b393b12c7c Mon Sep 17 00:00:00 2001 From: balvinderz Date: Mon, 26 Oct 2020 22:26:08 +0530 Subject: [PATCH 5/8] review changes --- packages/share_plus/CHANGELOG.md | 4 ++++ packages/share_plus/pubspec.yaml | 5 ++++- packages/share_plus_web/CHANGELOG.md | 2 +- packages/share_plus_web/README.md | 10 ++++++++-- packages/share_plus_web/lib/share_plus_web.dart | 3 +++ packages/share_plus_web/pubspec.yaml | 5 +++-- 6 files changed, 23 insertions(+), 6 deletions(-) diff --git a/packages/share_plus/CHANGELOG.md b/packages/share_plus/CHANGELOG.md index af1ba78fcb..e409602aa0 100644 --- a/packages/share_plus/CHANGELOG.md +++ b/packages/share_plus/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.1.1 + +- Add Web support for basic share capabilities. + ## 1.1.0 - Transfer to plus-plugins monorepo diff --git a/packages/share_plus/pubspec.yaml b/packages/share_plus/pubspec.yaml index 200b0d1619..295ec1ba37 100644 --- a/packages/share_plus/pubspec.yaml +++ b/packages/share_plus/pubspec.yaml @@ -1,7 +1,7 @@ name: share_plus description: Flutter plugin for sharing content via the platform share UI, using the ACTION_SEND intent on Android and UIActivityViewController on iOS. homepage: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/share_plus -version: 1.1.0 +version: 1.1.1 flutter: plugin: @@ -15,6 +15,8 @@ flutter: default_package: share_plus_linux windows: default_package: share_plus_windows + web: + default_package: share_plus_web dependencies: meta: ^1.0.5 @@ -24,6 +26,7 @@ dependencies: share_plus_platform_interface: ^1.1.0 share_plus_linux: ^1.1.0 share_plus_windows: ^0.1.0 + share_plus_web: ^0.1.0 dev_dependencies: test: ^1.3.0 diff --git a/packages/share_plus_web/CHANGELOG.md b/packages/share_plus_web/CHANGELOG.md index a6ea2c9a5d..7be26166a1 100644 --- a/packages/share_plus_web/CHANGELOG.md +++ b/packages/share_plus_web/CHANGELOG.md @@ -1,3 +1,3 @@ -# 0.0.1 +# 0.1.0 - Initial open-source release. diff --git a/packages/share_plus_web/README.md b/packages/share_plus_web/README.md index 7146288e20..94c9644098 100644 --- a/packages/share_plus_web/README.md +++ b/packages/share_plus_web/README.md @@ -1,6 +1,12 @@ -# Share Plus Web +# Share Plus Windows -[![Flutter Community: sensors_plus_web](https://fluttercommunity.dev/_github/header/share_plus_web)](https://github.com/fluttercommunity/community) +[![Flutter Community: share_plus_windows](https://fluttercommunity.dev/_github/header/share_plus_web)](https://github.com/fluttercommunity/community) +[![pub package](https://img.shields.io/pub/v/share_plus_web.svg)](https://pub.dev/packages/share_plus_web) The Web implementation of [`share_plus`](https://pub.dev/packages/share_plus). + +## Usage + +This package is already included as part of the `share_plus` package dependency, and will +be included when using `share_plus` as normal. diff --git a/packages/share_plus_web/lib/share_plus_web.dart b/packages/share_plus_web/lib/share_plus_web.dart index 1c4cfe8f71..080243ec82 100644 --- a/packages/share_plus_web/lib/share_plus_web.dart +++ b/packages/share_plus_web/lib/share_plus_web.dart @@ -19,6 +19,8 @@ class SharePlugin extends SharePlatform { SharePlugin({@visibleForTesting html.Navigator debugNavigator}) : _navigator = debugNavigator ?? html.window.navigator; + @override + /// Share text Future share( String text, { String subject, @@ -34,6 +36,7 @@ class SharePlugin extends SharePlatform { } @override + /// Share files Future shareFiles(List paths, {List mimeTypes, String subject, diff --git a/packages/share_plus_web/pubspec.yaml b/packages/share_plus_web/pubspec.yaml index 40f9738909..5a4ec7b6ec 100644 --- a/packages/share_plus_web/pubspec.yaml +++ b/packages/share_plus_web/pubspec.yaml @@ -1,10 +1,11 @@ name: share_plus_web description: Web platform implementation of share_plus -homepage: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/share_plus_web +homepage: https://plus.fluttercommunity.dev/ +repository: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/ # 0.1.y+z is compatible with 1.0.0, if you land a breaking change bump # the version to 2.0.0. # See more details: https://github.com/flutter/flutter/wiki/Package-migration-to-1.0.0 -version: 0.0.1 +version: 0.1.0 flutter: plugin: From 51052063ef7591dc366dfa81807041742c2cd3a7 Mon Sep 17 00:00:00 2001 From: balvinderz Date: Mon, 26 Oct 2020 22:29:22 +0530 Subject: [PATCH 6/8] revert share plus changes --- packages/share_plus/CHANGELOG.md | 4 ---- packages/share_plus/pubspec.yaml | 5 +---- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/packages/share_plus/CHANGELOG.md b/packages/share_plus/CHANGELOG.md index e409602aa0..af1ba78fcb 100644 --- a/packages/share_plus/CHANGELOG.md +++ b/packages/share_plus/CHANGELOG.md @@ -1,7 +1,3 @@ -## 1.1.1 - -- Add Web support for basic share capabilities. - ## 1.1.0 - Transfer to plus-plugins monorepo diff --git a/packages/share_plus/pubspec.yaml b/packages/share_plus/pubspec.yaml index 295ec1ba37..200b0d1619 100644 --- a/packages/share_plus/pubspec.yaml +++ b/packages/share_plus/pubspec.yaml @@ -1,7 +1,7 @@ name: share_plus description: Flutter plugin for sharing content via the platform share UI, using the ACTION_SEND intent on Android and UIActivityViewController on iOS. homepage: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/share_plus -version: 1.1.1 +version: 1.1.0 flutter: plugin: @@ -15,8 +15,6 @@ flutter: default_package: share_plus_linux windows: default_package: share_plus_windows - web: - default_package: share_plus_web dependencies: meta: ^1.0.5 @@ -26,7 +24,6 @@ dependencies: share_plus_platform_interface: ^1.1.0 share_plus_linux: ^1.1.0 share_plus_windows: ^0.1.0 - share_plus_web: ^0.1.0 dev_dependencies: test: ^1.3.0 From 2457328f395d4b1d8b3bc914c0b77f8d4cd58218 Mon Sep 17 00:00:00 2001 From: balvinderz Date: Mon, 26 Oct 2020 22:32:51 +0530 Subject: [PATCH 7/8] dartfmt --- packages/share_plus_web/lib/share_plus_web.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/share_plus_web/lib/share_plus_web.dart b/packages/share_plus_web/lib/share_plus_web.dart index 080243ec82..92d767bb68 100644 --- a/packages/share_plus_web/lib/share_plus_web.dart +++ b/packages/share_plus_web/lib/share_plus_web.dart @@ -20,6 +20,7 @@ class SharePlugin extends SharePlatform { : _navigator = debugNavigator ?? html.window.navigator; @override + /// Share text Future share( String text, { @@ -36,6 +37,7 @@ class SharePlugin extends SharePlatform { } @override + /// Share files Future shareFiles(List paths, {List mimeTypes, From 8ce607e48f8cf50a6591bca1068cbdcd4bb4dbc0 Mon Sep 17 00:00:00 2001 From: balvinderz Date: Mon, 26 Oct 2020 22:49:52 +0530 Subject: [PATCH 8/8] fix typo --- packages/share_plus_web/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/share_plus_web/README.md b/packages/share_plus_web/README.md index 94c9644098..acfaba99b8 100644 --- a/packages/share_plus_web/README.md +++ b/packages/share_plus_web/README.md @@ -1,6 +1,6 @@ -# Share Plus Windows +# Share Plus Web -[![Flutter Community: share_plus_windows](https://fluttercommunity.dev/_github/header/share_plus_web)](https://github.com/fluttercommunity/community) +[![Flutter Community: share_plus_web](https://fluttercommunity.dev/_github/header/share_plus_web)](https://github.com/fluttercommunity/community) [![pub package](https://img.shields.io/pub/v/share_plus_web.svg)](https://pub.dev/packages/share_plus_web)