Skip to content

Commit

Permalink
fixed log file sharing names
Browse files Browse the repository at this point in the history
  • Loading branch information
clragon committed Dec 11, 2023
1 parent e8903b3 commit d7948ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/interface/data/share.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:share_plus/share_plus.dart' as plus;

class Share {
abstract final class Share {
static Future<void> share(BuildContext context, String text) async {
if (Platform.isAndroid || Platform.isIOS) {
return plus.Share.share(text);
Expand All @@ -24,6 +24,7 @@ class Share {
Uint8List.fromList(utf8.encode(text)),
name: name,
mimeType: 'text/plain',
path: name,
);
await plus.Share.shareXFiles([file]);
} else {
Expand Down

0 comments on commit d7948ab

Please sign in to comment.