Skip to content

Commit c802aa8

Browse files
committed
Fix platform check for web on save
1 parent c8929de commit c802aa8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/lw_sysapi/lib/src/api/src/save.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import 'dart:io';
2-
import 'dart:typed_data';
32

43
import 'package:file_picker/file_picker.dart';
4+
import 'package:flutter/foundation.dart';
55
import 'package:lw_sysapi/src/api/api.dart';
66

77
Future<void> exportFile(
@@ -12,7 +12,7 @@ Future<void> exportFile(
1212
String uniformTypeIdentifier,
1313
String label,
1414
) async {
15-
if (Platform.isAndroid) {
15+
if (!kIsWeb && Platform.isAndroid) {
1616
await platform.invokeMethod('saveFile', {
1717
'mime': mimeType,
1818
'data': bytes,

0 commit comments

Comments
 (0)