FlutterToast
FlutterToast copied to clipboard
Flutter Toast 使用 Flutter 原生 API实现的 Toast 功能
[PROBLEM] The [official demo](https://github.com/appdev/FlutterToast/blob/4654d39ec9cfced65e39dc93039d7da3f6b1ea3c/example/lib/main.dart#L9) will throw the error `Unhandled Exception: Null check operator used on a null value` when showing toast. see: [Issue#29](https://github.com/appdev/FlutterToast/issues/29) [REASON] 1. `Toast.show` need invoke `ToastView.createView` which...
[ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: 'package:flutter/src/widgets/overlay.dart': Failed assertion: line 147 pos 12: '_overlay != null': is not true. [ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: Null check operator used on a null value
My code is very simple and I'm still getting an error : void initState() { super.initState(); Toast.show("Toast plugin app", context, duration: Toast.LENGTH_SHORT, gravity: Toast.BOTTOM); } error : [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception:...
I needed this component, much better than the default material toast, thanks. I just needed to customize it further to fit the style of my app. Found it really easy...
Hi! You made a good open source library. I really appreciate about it. But there is a bug which is related with the soft keyboard. Toast Message is not visible...
Since flutter do the same and offering tuns of different things to do.. every other widget should has the same approach.. I recently worked with this **Toast** and I couldn't...
`ToastContext().init(context);` but init Function is not static Function,I will report an error if I write like this. error:Instance member 'init' can't be accessed using static access. I only `var toastContext...
Init in GetMaterialApp ``` GetMaterialApp( debugShowCheckedModeBanner: false, onInit: () async { ToastContext().init(context); }, home: HomePage(), routes: { PAGE_BACKUP: (context) => BackupPage(), }, navigatorObservers: [firebase], ); ``` show: `Toast.show('subtype_name_repeated', gravity: Toast.top);`...
I got this error in web > ReferenceError: Toastify is not defined > %3Canonymous%3E 1:30 > dart-sdk/lib/html/dart2js/html_dart2js.dart 23474:33 append] > dart-sdk/lib/html/dart2js/html_dart2js.dart 11768:14 add > packages/toast/toast_web.dart 70:24 showWebToast > packages/toast/toast_web.dart 42:5...