Skip to content

Commit

Permalink
flutter web breaking change fix (#529)
Browse files Browse the repository at this point in the history
Co-authored-by: Tushar Asodariya <[email protected]>
  • Loading branch information
tushar-asodariya and Tushar Asodariya authored Aug 14, 2024
1 parent 828fb6d commit 580346b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fluttertoast_web.dart
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class FluttertoastWebPlugin {
}
final web.HTMLScriptElement scriptText = web.HTMLScriptElement()
..id = "toast-content"
..innerHTML = content.toJS;
..innerHTML = content.toJS.toString();
web.document.body!.append(scriptText);
if (textColor != null) {
web.Element toast = web.document.querySelector('.toastify')!;
Expand Down

0 comments on commit 580346b

Please sign in to comment.