OpenFlutter / flutter_oktoast

Toast library for Flutter.

Home Page:https://pub.dev/packages/oktoast

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flutter web -- If you don't add the toast position in flutter web, production build does not work

arualana opened this issue · comments

I am using showToastWidget

In flutter web, if no position is added, it works on debug mode, but for production build you get this error

Instance of 'minified:mJ'
main.dart.js:3962 Another exception was thrown: Instance of 'minified:eL<void>'

and in profile build you get these errors.

First this:

══╡  ╞══════════════════════════════════════════════════════════════════════════════════════════════
js_primitives.dart:47 ════════════════════════════════════════════════════════════════════════════════════════════════════

and then on dismissing, this

Another exception was thrown: Instance of 'ErrorSummary'

When adding the position, for example, position: ToastPosition.bottom, then the production build gets fixed

Are you still encounting this issue?