Toast Library for Flutter

Overview

flutter_flexible_toast

Toast Library for Flutter.

How to Use

just add below in pubspec.yaml

flutter_flexible_toast: ^0.1.4
import 'package:flutter_flexible_toast/flutter_flexible_toast.dart';
FlutterFlexibleToast.showToast(
    message: "Short Loading 2 Sec Toast",
    toastLength: Toast.LENGTH_LONG,
    toastGravity: ToastGravity.BOTTOM,
    icon: ICON.LOADING,
    radius: 100,
    elevation: 10,
    imageSize: 35,
    textColor: Colors.white,
    backgroundColor: Colors.black,
    timeInSeconds: 2
);

To cancel all the toasts call

FlutterFlexibleToast.cancel();

Preview Screenshots

short_info_one_second_toast

For More Info

Email : android : [email protected]
Email : ios : on [email protected]

Comments
  • How to adjust the size of icon?

    How to adjust the size of icon?

    How to adjust the size of icon? It's a little big in iOS.

    This's really a good library, don't rely on BuildContext, so we can use it anywhere. Thanks a lot.

    opened by lanistor 2
  • flutter_flexible_toast uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.

    flutter_flexible_toast uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.

    Note: C:\Tools\flutter.pub-cache\hosted\pub.dartlang.org\flutter_flexible_toast-0.1.4\android\src\main\kotlin\sanketvekariya\flutter_flexible_toast\GifImageView.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.

    opened by kw2019ltd 1
  • Why the release ARR is so big?

    Why the release ARR is so big?

    Why the release ARR is so big?

    ubuntu@V:/mnt/c/Users/xx/Desktop/my-src/clicli_dark/build/flutter_flexible_toast/outputs/aar$ du -sh flutter_flexible_toast-release.aar
    3.2M    flutter_flexible_toast-release.aar
    
    opened by shiyiya 1
  • Error on iOS

    Error on iOS

    Fatal error: Unexpectedly found nil while unwrapping an Optional value: file /Users/ukietux/Library/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_flexible_toast-0.1.4/ios/Classes/SwiftFlutterFlexibleToastPlugin.swift, line 124
    Lost connection to device.
    

    I got that issue when run in iOS

    opened by Lzyct 0
  • Error

    Error

    Plase help me whit This error: Thanks

    E/flutter (22041): [ERROR:flutter/shell/platform/android/platform_view_android_jni.cc(40)] java.lang.NoSuchFieldError: No field cardView of type I in class Lsanketvekariya/flutter_flexible_toast/R$id; or its superclasses (declaration of 'sanketvekariya.flutter_flexible_toast.R$id' appears in /data/app/com.transportguide-WcJ3OA4Tg6GfQqDwge1YXw==/base.apk) E/flutter (22041): at sanketvekariya.flutter_flexible_toast.FlutterFlexibleToastPlugin.onMethodCall(FlutterFlexibleToastPlugin.kt:49) E/flutter (22041): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:230) E/flutter (22041): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85) E/flutter (22041): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:650) E/flutter (22041): at android.os.MessageQueue.nativePollOnce(Native Method) E/flutter (22041): at android.os.MessageQueue.next(MessageQueue.java:325) E/flutter (22041): at android.os.Looper.loop(Looper.java:142) E/flutter (22041): at android.app.ActivityThread.main(ActivityThread.java:6541) E/flutter (22041): at java.lang.reflect.Method.invoke(Native Method) E/flutter (22041): at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) E/flutter (22041): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767) E/flutter (22041): F/flutter (22041): [FATAL:flutter/shell/platform/android/platform_view_android_jni.cc(77)] Check failed: CheckException(env). F/libc (22041): Fatal signal 6 (SIGABRT), code -6 in tid 22041 (.transportguide)


    Build fingerprint: 'google/sdk_gphone_x86/generic_x86:8.0.0/OSR1.170901.043/4456315:user/release-keys' Revision: '0' ABI: 'x86' pid: 22041, tid: 22041, name: .transportguide >>> com.transportguide <<< signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr -------- Abort message: '[FATAL:flutter/shell/platform/android/platform_view_android_jni.cc(77)] Check failed: CheckException(env). ' eax 00000000 ebx 00005619 ecx 00005619 edx 00000006 esi 00005619 edi bfbd5178 xcs 00000073 xds 0000007b xes 0000007b xfs 0000003b xss 0000007b eip afbf5ac4 ebp bfbd5198 esp bfbd512c flags 00200296 backtrace: #00 pc 00000ac4 [vdso:afbf5000] (__kernel_vsyscall+16) #01 pc 00075b3c /system/lib/libc.so (tgkill+28) #02 pc 0001f04e /system/lib/libc.so (abort+110) #03 pc 0001de9c /data/app/com.transportguide-WcJ3OA4Tg6GfQqDwge1YXw==/lib/x86/libflutter.so (offset 0x1152000) #04 pc 0000a4cf /data/app/com.transportguide-WcJ3OA4Tg6GfQqDwge1YXw==/lib/x86/libflutter.so (offset 0x1152000) #05 pc 00007fa6 /data/app/com.transportguide-WcJ3OA4Tg6GfQqDwge1YXw==/lib/x86/libflutter.so (offset 0x1152000) #06 pc 00075493 /data/app/com.transportguide-WcJ3OA4Tg6GfQqDwge1YXw==/lib/x86/libflutter.so (offset 0x1152000) #07 pc 0001c083 /data/app/com.transportguide-WcJ3OA4Tg6GfQqDwge1YXw==/lib/x86/libflutter.so (offset 0x1152000) #08 pc 0001ec8b /data/app/com.transportguide-WcJ3OA4Tg6GfQqDwge1YXw==/lib/x86/libflutter.so (offset 0x1152000) #09 pc 0001ebce /data/app/com.transportguide-WcJ3OA4Tg6GfQqDwge1YXw==/lib/x86/libflutter.so (offset 0x1152000) #10 pc 00024dac /data/app/com.transportguide-WcJ3OA4Tg6GfQqDwge1YXw==/lib/x86/libflutter.so (offset 0x1152000) #11 pc 00024dda /data/app/com.transportguide-WcJ3OA4Tg6GfQqDwge1YXw==/lib/x86/libflutter.so (offset 0x1152000) #12 pc 00014a37 /system/lib/libutils.so (_ZN7android20SimpleLooperCallback11handleEventEiiPv+39) #13 pc 0001586c /system/lib/libutils.so (_ZN7android6Looper9pollInnerEi+988) #14 pc 00015406 /system/lib/libutils.so (_ZN7android6Looper8pollOnceEiPiS1_PPv+118) #15 pc 000e4c6b /system/lib/libandroid_runtime.so (_ZN7androidL38android_os_MessageQueue_nativePollOnceEP7_JNIEnvP8_jobjectxi+59) #16 pc 007b4198 /system/framework/x86/boot-framework.oat (offset 0x5e6000) (android.app.NativeActivity.onWindowFocusChangedNative [DEDUPED]+136) #17 pc 00638cd2 /system/lib/libart.so (art_quick_invoke_stub+338) #18 pc 00112b48 /system/lib/libart.so (_ZN3art9ArtMethod6InvokeEPNS_6ThreadEPjjPNS_6JValueEPKc+232) #19 pc 003231ff /system/lib/libart.so (_ZN3art11interpreter34ArtInterpreterToCompiledCodeBridgeEPNS_6ThreadEPNS_9ArtMethodEPKNS_7DexFile8CodeItemEPNS_11ShadowFrameEPNS_6JValueE+367) #20 pc 0031bde1 /system/lib/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+817) #21 pc 0061f80b /system/lib/libart.so (MterpInvokeDirect+523) #22 pc 006299a1 /system/lib/libart.so (artMterpAsmInstructionStart+14369) #23 pc 002f5f59 /system/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameENS_6JValueEb+537) #24 pc 002fdeda /system/lib/libart.so (_ZN3art11interpreter33ArtInterpreterToInterpreterBridgeEPNS_6ThreadEPKNS_7DexFile8CodeItemEPNS_11ShadowFrameEPNS_6JValueE+234) #25 pc 0031bdb5 /system/lib/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+773) #26 pc 0061e171 /system/lib/libart.so (MterpInvokeVirtual+881) #27 pc 006298a1 /system/lib/libart.so (artMterpAsmInstructionStart+14113) #28 pc 002f5f59 /system/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameENS_6JValueEb+537) #29 pc 002fdeda /system/lib/libart.so (_ZN3art11interpreter33ArtInterpreterToInterpreterBridgeEPNS_6ThreadEPKNS_7DexFile8CodeItemEPNS_11ShadowFrameEPNS_6JValueE+234) #30 pc 0031bdb5 /system/lib/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+773) #31 pc 0061faf4 /system/lib/libart.so (MterpInvokeStatic+484) #32 pc 00629a21 /system/lib/libart.so (artMterpAsmInstructionStart+14497) #33 pc 002f5f59 /system/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameENS_6JValueEb+537) #34 pc 002fddbb /system/lib/libart.so (_ZN3art11interpreter30EnterInterpreterFromEntryPointEPNS_6ThreadEPKNS_7DexFile8CodeItemEPNS_11ShadowFrameE+139) #35 pc 0060e53f /system/lib/libart.so (artQuickToInterpreterBridge+1375) #36 pc 0063ed2d /system/lib/libart.so (art_quick_to_interpreter_bridge+77) #37 pc 00638ea2 /system/lib/libart.so (art_quick_invoke_static_stub+418) #38 pc 00112b92 /system/lib/libart.so (_ZN3art9ArtMethod6InvokeEPNS_6ThreadEPjjPNS_6JValueEPKc+306) #39 pc 00533035 /system/lib/libart.so (_ZN3artL18InvokeWithArgArrayERKNS_33ScopedObjectAccessAlreadyRunnableEPNS_9ArtMethodEPNS_8ArgArrayEPNS_6JValueEPKc+101) #40 pc 005350c6 /system/lib/libart.so (_ZN3art12InvokeMethodERKNS_33ScopedObjectAccessAlreadyRunnableEP8_jobjectS4_S4_j+1478) #41 pc 004a2420 /system/lib/libart.so (ZN3artL13Method_invokeEP7_JNIEnvP8_jobjectS3_S3+80) #42 pc 0026dbd8 /system/framework/x86/boot.oat (offset 0x1df000) (java.lang.Class.getDeclaredMethodInternal [DEDUPED]+168) #43 pc 00638cd2 /system/lib/libart.so (art_quick_invoke_stub+338) #44 pc 00112b48 /system/lib/libart.so (_ZN3art9ArtMethod6InvokeEPNS_6ThreadEPjjPNS_6JValueEPKc+232) #45 pc 003231ff /system/lib/libart.so (_ZN3art11interpreter34ArtInterpreterToCompiledCodeBridgeEPNS_6ThreadEPNS_9ArtMethodEPKNS_7DexFile8CodeItemEPNS_11ShadowFrameEPNS_6JValueE+367) #46 pc 0031bde1 /system/lib/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+817) #47 pc 0061e171 /system/lib/libart.so (MterpInvokeVirtual+881) #48 pc 006298a1 /system/lib/libart.so (artMterpAsmInstructionStart+14113) #49 pc 002f5f59 /system/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameENS_6JValueEb+537) #50 pc 002fddbb /system/lib/libart.so (_ZN3art11interpreter30EnterInterpreterFromEntryPointEPNS_6ThreadEPKNS_7DexFile8CodeItemEPNS_11ShadowFrameE+139) #51 pc 0060e53f /system/lib/libart.so (artQuickToInterpreterBridge+1375) #52 pc 0063ed2d /system/lib/libart.so (art_quick_to_interpreter_bridge+77) #53 pc 01611063 /system/framework/x86/boot-framework.oat (offset 0x5e6000) (com.android.internal.os.ZygoteInit.main+2707) #54 pc 00638ea2 /system/lib/libart.so (art_quick_invoke_static_stub+418) #55 pc 00112b92 /system/lib/libart.so (_ZN3art9ArtMethod6InvokeEPNS_6ThreadEPjjPNS_6JValueEPKc+306) #56 pc 00533035 /system/lib/libart.so (_ZN3artL18InvokeWithArgArrayERKNS_33ScopedObjectAccessAlreadyRunnableEPNS_9ArtMethodEPNS_8ArgArrayEPNS_6JValueEPKc+101) #57 pc 00532cf9 /system/lib/libart.so (_ZN3art17InvokeWithVarArgsERKNS_33ScopedObjectAccessAlreadyRunnableEP8_jobjectP10_jmethodIDPc+441) #58 pc 004116a0 /system/lib/libart.so (_ZN3art3JNI21CallStaticVoidMethodVEP7_JNIEnvP7_jclassP10_jmethodIDPc+992) #59 pc 00152055 /system/lib/libart.so (_ZN3art8CheckJNI11CallMethodVEPKcP7_JNIEnvP8_jobjectP7_jclassP10_jmethodIDPcNS_9Primitive4TypeENS_10InvokeTypeE+3237) #60 pc 0013eb0b /system/lib/libart.so (_ZN3art8CheckJNI21CallStaticVoidMethodVEP7_JNIEnvP7_jclassP10_jmethodIDPc+75) #61 pc 000819be /system/lib/libandroid_runtime.so (_ZN7_JNIEnv20CallStaticVoidMethodEP7_jclassP10_jmethodIDz+62) #62 pc 00083e96 /system/lib/libandroid_runtime.so (_ZN7android14AndroidRuntime5startEPKcRKNS_6VectorINS_7String8EEEb+838) #63 pc 00001db3 /system/bin/app_process32 (main+1603) Lost connection to device.

    opened by aldobm 0
  • Option to disable timer

    Option to disable timer

    When using loading toast, not a good idea to base it on timer since the operation can take too long. an option to have no timer would be great.

    besides, we have the .cancel() to hide it.

    opened by chitgoks 0
  • [Crash Report] LOADING Icon causes crash on ios.

    [Crash Report] LOADING Icon causes crash on ios.

    • Flutter: 1.61.1
    • iOS: 13.3

    I think this may be the compatibility problem, when we use flutter 1.15 on ios, it works fine, and flutter 1.16 on Android works fine, and others icon works fine too.

    opened by lanistor 1
Owner
Sanket Vekariya
Google Certified Associate Android Developer. Flutter Developer. Earning Experience by Learning Lessons.
Sanket Vekariya
Lightweight Flutter form library

LoForm ?? LoForm is still experimental, missing features and bugs are to be expected. LoForm is a low-code and lightweight Flutter form library, inspi

Youssef Raafat 78 Dec 30, 2022
A small library for creating snapping lists.

snaplist A small cozy library that allows you to make snappable list views. Issues and Pull Requests are really appreciated! Snaplist supports differe

David Leibovych 420 Jan 3, 2023
Movies App UI in Flutter using Simple Widgets without Using API's in Flutter.

Movies App UI in Flutter using Simple Widgets without Using API's in Flutter.

Habib ullah 3 May 15, 2022
A flutter plugin for Easily make Flutter apps responsive. Automatically adapt UI to different screen sizes. Responsiveness made simple.

A flutter plugin for Easily make Flutter apps responsive. Automatically adapt UI to different screen sizes. Responsiveness made simple.

Urmish Patel 191 Dec 29, 2022
The Coolicons icon pack for Flutter with over 400 icons available for your flutter project.

coolicons This flutter package allows you to use the Coolicons icon pack. Made from Coolicons. ?? Installation In the dependencies: section of your pu

Stephen Joel 1 May 24, 2022
Foody - Flutter project to display foods to clients and display charts and has a lot of features , two flutter apps : Android and Web

Foody Flutter project to display foods to the clients and use charts and use a lot of features to complete the process (HUGE APP) There two apps: Andr

ABDULKARIMALBAIK 1 Feb 7, 2022
Flutter-business-card-app - Flutter + Dart business card mobile app

Dart + Flutter Business Card Mobile Application

Mark Hellner 1 Nov 8, 2022
A Flutter project that gives basic flutter design to implement a login UI

Login UI Design A Flutter project that gives basic flutter design to implement a

CABREX 9 Nov 8, 2022
Flutter Complete E-Commerce app (UI by - 'The Flutter Way')

NOT COMPLETED YET! e_commerce A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to ge

null 1 Mar 8, 2022
Flutter Shop UI - an e-commerce app using Flutter

If you are planning to create an e-commerce app using Flutter then this Shop UI Kit would be the perfect choice for you to make a gorgeous app for both Android & iOS.

Trần Văn Nguyên 21 Nov 21, 2022
A Flutter staggered grid view

flutter_staggered_grid_view A Flutter staggered grid view which supports multiple columns with rows of varying sizes. Features Configurable cross-axis

Romain Rastel 2.7k Dec 30, 2022
A simple animated radial menu widget for Flutter.

flutter_radial_menu A radial menu widget for Flutter. . Installation Install the latest version from pub. Quick Start Import the package, create a Rad

Victor Choueiri 434 Jan 7, 2023
Tinder like cards swipe effect with Flutter.

Tinder cards Hi! After showcasing Focus for Reddit, the app I am working on, people asked me how did I do the tinder like cards swipe (posts media are

Ivascu Adrian 733 Jan 7, 2023
The app to demo animation with Flutter by implement Facebook reactions

Facebook Reactions Animation Description The app to demo animation with Flutter by implement Facebook reactions. Watch the demo video for more clarity

Duy Tran 318 Jan 8, 2023
Custom widget for Flutter

Flushbar Use this package if you need more customization when notifying your user. For Android developers, it is made to substitute toasts and snackba

Andre Haueisen 899 Dec 30, 2022
flutter stepper_touch widget

stepper_touch the concept of the widget inspired from Nikolay Kuchkarov. i extended the functionality to be more useful in real world applications Tha

Raouf Rahiche 271 Dec 30, 2022
A TypeAhead widget for Flutter, where you can show suggestions to users as they type

Flutter TypeAhead A TypeAhead (autocomplete) widget for Flutter, where you can show suggestions to users as they type Features Shows suggestions in an

null 661 Jan 5, 2023
A highly customisable Flutter widget for entering pin code. Suitable for use cases such as login and OTP.

pin_code_text_field It's a beautiful and highly customizable Flutter widget for entering pin code. Suitable for use cases such as login and OTP. Usage

Liew Jun Tung 309 Dec 28, 2022
Flutter FoldingCell widget

Simple FoldingCell widget Simple folding cell widget, pass frontWidget and innerWidget to fold and unfold. Installation Add dependency in pubspec.yaml

Farrukh 513 Dec 30, 2022