How to give share option through flutter application

flutter share plugin example
flutter share github
flutter share screenshot
flutter_share
flutter_share 1.0 2 1
flutter apps
flutter ui builder
flutter webview plugin example

I am new to flutter I have gone through the below link to implement share option through my application but that package is not working my flutter version is 0.5.1 and if I add that package in pubspec.yaml I'm getting this error please help me out

name: share
description: A new Flutter project.

dependencies:
  flutter:
    sdk: flutter

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^0.1.2
  share: ^0.5.3

dev_dependencies:
  flutter_test:
    sdk: flutter


# For information on the generic Dart part of this file, see the
# following page: https://www.dartlang.org/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:

  # The following line ensures that the Material Icons font is
  # included with your application, so that you can use the icons in
  # the material Icons class.
  uses-material-design: true

  # To add assets to your application, add an assets section, like this:
  # assets:
  #  - images/a_dot_burr.jpeg
  #  - images/a_dot_ham.jpeg

  # An image asset can refer to one or more resolution-specific "variants", see
  # https://flutter.io/assets-and-images/#resolution-aware.

  # For details regarding adding assets from package dependencies, see
  # https://flutter.io/assets-and-images/#from-packages

  # To add custom fonts to your application, add a fonts section here,
  # in this "flutter" section. Each entry in this list should have a
  # "family" key with the font family name, and a "fonts" key with a
  # list giving the asset and other descriptors for the font. For
  # example:
  # fonts:
  #   - family: Schyler
  #     fonts:
  #       - asset: fonts/Schyler-Regular.ttf
  #       - asset: fonts/Schyler-Italic.ttf
  #         style: italic
  #   - family: Trajan Pro
  #     fonts:
  #       - asset: fonts/TrajanPro.ttf
  #       - asset: fonts/TrajanPro_Bold.ttf
  #         weight: 700
  #
  # For details regarding fonts from package dependencies,
  # see https://flutter.io/custom-fonts/#from-packages

Result::

[share] flutter packages get
Running "flutter packages get" in share...
Error on line 11, column 3 of pubspec.yaml: A package may not list itself as a dependency.
  share: ^0.5.3
  ^^^^^
pub get failed (65)
exit code 65

Here is the link what I refered: https://pub.dartlang.org/packages/share

PS: Let me know if there is any other way to achieve that.

Add Package in pubspec.yaml

share: ^0.5.3

import 'package:share/share.dart'; 

    void _onShareTap() {
        final RenderBox box = context.findRenderObject();
        Share.share(share,
            sharePositionOrigin: box.localToGlobal(Offset.zero) & box.size);
      }

share, Flutter plugin for sharing content via the platform share UI, using the A Flutter plugin to share content from your Flutter app via the platform's  This article describes the notion of Shared Preferences that allows a Flutter application (Android or iOS) to save settings, properties, data in the form of key-value pairs that will persist even

pubspec.yaml dependencies: share: ^0.5.3

Dart file: import 'package:share/share.dart';

final RenderBox box = context.findRenderObject(); Share.share(BASE64_IMAGE,sharePositionOrigin: box.localToGlobal(Offset.zero) & box.size);

Share Content with the Flutter Share Plugin, Learn how to use the share plugin in Flutter to take advantage of the native You can help us out by using the "report an issue" button at the bottom Are you creating a Flutter application that has content users may want to share with their In order to make it so that whenever the user clicks on a ListTile  In this video, we’ll learn how can we clone the WhatsApp UI in flutter. We will build an app which is a clone of our favorite messenger WhatsApp Telugu kadha

The problem is your package name(first line in pubspec.yaml). It's the same as one of the dependency name: share. Please rename it to something else and try again.

How to use the Flutter Share Plugin, In the video above, I have programmed a Web-Browser in Flutter using the WebView widget..and finally sharing the app. Let's see how to do it  Trova mi is built in Flutter with Firebase for the backend. The app lets you create a group and track the location of all the users in that group who have chosen to share their location. I used the Flutter’s in-house widgets and Firebase’s real-time database to store and retrieve information. Dependencies

Flutter - WebView and Sharing Apps - FlutterPub, Learn how to extend your Flutter app with platform-specific features the default iOS share dialog with the given subject and your attached file. Hi all, in this article, we’ll try to build a chat app with Flutter and Firebase from scratch (include Firebase Auth, Google Sign-In, Cloud FireStore and Firebase Storage). Our app will have the…

A Flutter Channel to Share a File on iOS and Android, Use CaseA common use case when building an Android app is to have it know this little dialog that pops up when you hit the “Share” button in any app. The official Flutter docs already give a good example on how to  During a typical development cycle, you test an app using flutter run at the command line, or by using the Run and Debug options in your IDE. By default, Flutter builds a debug version of your app. When you’re ready to prepare a release version of your app, for example to publish to the Google Play Store , this page can help.

How to receive sharing intents in Flutter?, In this codelab, you'll build a field trip app, Field Trippa, that enables users to share photos. Learn how to use the Google Photos Library API to back a media  The technical preview for Flutter Web was released, and a live demonstration showed how Flutter apps can run on Desktop environments, like Chrome OS, Linux, Mac OS, or Windows. In this article we

Comments
  • please share your pubspec.yaml
  • Updated my question please see..