From 580346b9fc76aeea3aa11093028a3b525b12d7ea Mon Sep 17 00:00:00 2001 From: Tushar Asodariya Date: Wed, 14 Aug 2024 18:32:44 +0530 Subject: [PATCH] flutter web breaking change fix (#529) Co-authored-by: Tushar Asodariya --- lib/fluttertoast_web.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fluttertoast_web.dart b/lib/fluttertoast_web.dart index 83874e0d..33fd9fb6 100644 --- a/lib/fluttertoast_web.dart +++ b/lib/fluttertoast_web.dart @@ -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')!;