{"repo":"OpenFlutter/flutter_oktoast","free":true,"listed":false,"github":"https://github.com/OpenFlutter/flutter_oktoast","clone":"git clone https://github.com/OpenFlutter/flutter_oktoast.git","description":"Toast library for Flutter.","language":"Dart","stars":515,"topics":["toast","flutter","widget","pub","dart"],"license":"Apache-2.0","category":"mobile-apps","readme_excerpt":"oktoast A library for flutter. A pure dart toast Library. You can completely customize the style of toast. 中文博客介绍 Screenshot Default Custom GIF ---------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------- Versions 3.x.x Starting from the 3.x version, OKToast provides a null-safety version, the specific introduction of null-safety can be viewed in [dart][dart-safe] or [flutter][flutter-safe]. [flutter-safe]: https://flutter.dev/docs/null-safety [dart-safe]: https://dart.dev/null-safety The 2.3.2 version is the last version that does not support null-safety. About version 1.x if you use OKToast 1.x, Please use the 1.x branch, and read version readme. Proposed migration to 2.x version. The new version does not require buildContext. And you can completely customize the style of toast, because now you can use showToastWidget . Usage 1. Add library to your pubspec.yaml 2. Import library in dart file 3. Wrap your app widget Tips: If you happened error like: No MediaQuery widget found , you can try to use this code to include OKToast to your App. 4. Call method showToast Explain There are two reasons why you need to wrap MaterialApp 1. Because this ensures that toast can be displayed in front of all other controls 2. Context can be cached so that it can be invoked anywhere without pas","default_branch":null,"files":null,"tree":[],"storefront":"/r/OpenFlutter","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/OpenFlutter/flutter_oktoast/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}