You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/dev_guide/platform_specific_instructions.md
+30-2
Original file line number
Diff line number
Diff line change
@@ -39,8 +39,36 @@ android {
39
39
}
40
40
```
41
41
42
-
## Web
42
+
For more information on multidex support, you can refer to the Android developer guide on [Configuring Multidex](https://developer.android.com/studio/build/multidex).
43
43
44
-
Running it on web requires the following modification in the local cached code of `printing` package.
44
+
## Web
45
+
46
+
If you're building a Flutter app for the web, you may encounter a build error like:
47
+
48
+
```
49
+
Launching lib/main.dart on Chrome in debug mode...
A value of type 'JSString' can't be assigned to a variable of type 'String'.
52
+
.toJS;
53
+
^
54
+
Failed to compile application.
55
+
```
56
+
57
+
This happens because `.toJS` is no longer required for converting Dart strings to JavaScript strings in recent Dart versions.
58
+
59
+
**Fix:**
60
+
Update the `printing_web.dart` file in the cached `printing` package by removing `.toJS` as done in the PR [here](https://github.com/DavBfr/dart_pdf/pull/1739/files)
0 commit comments