share_options 1.0.3 copy "share_options: ^1.0.3" to clipboard
share_options: ^1.0.3 copied to clipboard

A Flutter plugin for getting share options and share text & multiple file over them.

example/lib/main.dart

// Copyright 2019 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';
import 'package:provider/provider.dart';
import 'package:share_options/share_options.dart';

import 'logic.dart';
import 'ui/ui.dart';

void main() {
  runApp(MyMaterialApp());
}

class MyMaterialApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    ShareOptions.getTextShareOptions('text').then((value) => value[0]);

    return ChangeNotifierProvider(
      create: (BuildContext context) => Logic(),
      child: MaterialApp(home: Ui()),
    );
  }
}
16
likes
40
pub points
47%
popularity

Publisher

unverified uploader

A Flutter plugin for getting share options and share text & multiple file over them.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter, mime

More

Packages that depend on share_options