diff --git a/example/lib/main.dart b/example/lib/main.dart index 5b83f7d..f43edf6 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -50,7 +50,7 @@ class _MyHomePageState extends State { child: Text('Share mixed'), onPressed: () async => await _shareMixed(), ), - MaterialButton( + MaterialButton( child: Text('Share image from url'), onPressed: () async => await _shareImageFromUrl(), ), @@ -129,7 +129,7 @@ class _MyHomePageState extends State { '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'); } diff --git a/lib/esys_flutter_share.dart b/lib/esys_flutter_share.dart index 617dce3..e685409 100644 --- a/lib/esys_flutter_share.dart +++ b/lib/esys_flutter_share.dart @@ -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';