We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8929de commit c802aa8Copy full SHA for c802aa8
packages/lw_sysapi/lib/src/api/src/save.dart
@@ -1,7 +1,7 @@
1
import 'dart:io';
2
-import 'dart:typed_data';
3
4
import 'package:file_picker/file_picker.dart';
+import 'package:flutter/foundation.dart';
5
import 'package:lw_sysapi/src/api/api.dart';
6
7
Future<void> exportFile(
@@ -12,7 +12,7 @@ Future<void> exportFile(
12
String uniformTypeIdentifier,
13
String label,
14
) async {
15
- if (Platform.isAndroid) {
+ if (!kIsWeb && Platform.isAndroid) {
16
await platform.invokeMethod('saveFile', {
17
'mime': mimeType,
18
'data': bytes,
0 commit comments