Share sheet

This commit is contained in:
unknown 2018-06-20 12:25:38 -07:00
parent a2229a46d5
commit a1d7032d73
3 changed files with 16 additions and 0 deletions

View File

@ -7,6 +7,7 @@ import 'package:invoiceninja/ui/app/actions_menu_button.dart';
import 'package:invoiceninja/ui/app/two_value_header.dart';
import 'package:invoiceninja/ui/invoice/view/invoice_view_vm.dart';
import 'package:invoiceninja/utils/localization.dart';
import 'package:share/share.dart';
class InvoiceView extends StatefulWidget {
final InvoiceViewVM viewModel;
@ -60,6 +61,12 @@ class _InvoiceViewState extends State<InvoiceView>
)
],
),
floatingActionButton: FloatingActionButton(
onPressed: () {
print('pressed');
Share.share('testing');
}
),
body: ListView(
children: <Widget>[
TwoValueHeader(

View File

@ -413,6 +413,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "0.3.0"
share:
dependency: "direct main"
description:
name: share
url: "https://pub.dartlang.org"
source: hosted
version: "0.5.2"
shared_preferences:
dependency: "direct main"
description:

View File

@ -21,6 +21,8 @@ dependencies:
memoize: "^1.4.0"
url_launcher: "^3.0.2"
cached_network_image: "^0.4.1"
share: "^0.5.2"
dev_dependencies:
flutter_driver: