Skip to content
This repository has been archived by the owner on Jul 21, 2022. It is now read-only.

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
d-wolf committed Apr 2, 2019
1 parent 643a384 commit 864490e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class _MyHomePageState extends State<MyHomePage> {
child: Text('Share mixed'),
onPressed: () async => await _shareMixed(),
),
MaterialButton(
MaterialButton(
child: Text('Share image from url'),
onPressed: () async => await _shareImageFromUrl(),
),
Expand Down Expand Up @@ -129,7 +129,7 @@ class _MyHomePageState extends State<MyHomePage> {
'https://shop.esys.eu/media/image/6f/8f/af/amlog_transport-berwachung.jpg'));
var response = await request.close();
Uint8List bytes = await consolidateHttpClientResponseBytes(response);
await Share.file('esys image', 'esys.png', bytes, 'image/jpg');
await Share.file('ESYS AMLOG', 'amlog.jpg', bytes, 'image/jpg');
} catch (e) {
print('error: $e');
}
Expand Down
1 change: 0 additions & 1 deletion lib/esys_flutter_share.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'dart:async';
import 'dart:io';
import 'dart:typed_data';

import 'package:flutter/services.dart';
import 'package:path_provider/path_provider.dart';
Expand Down

0 comments on commit 864490e

Please sign in to comment.