sanket-vekariya / flutter_flexible_toast Goto Github PK
View Code? Open in Web Editor NEWA Powerful Toast Library for Flutter. Easily create toast messages in single line of code with leading image options.
License: MIT License
A Powerful Toast Library for Flutter. Easily create toast messages in single line of code with leading image options.
License: MIT License
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.
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.
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.
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
Awesome package, thanks a lot.
Please add message fontFamily or TextStyle option as I need to change the message font family.
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
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)
#1 pc 00075b3c /system/lib/libc.so (tgkill+28)
#2 pc 0001f04e /system/lib/libc.so (abort+110)
#3 pc 0001de9c /data/app/com.transportguide-WcJ3OA4Tg6GfQqDwge1YXw==/lib/x86/libflutter.so (offset 0x1152000)
#4 pc 0000a4cf /data/app/com.transportguide-WcJ3OA4Tg6GfQqDwge1YXw==/lib/x86/libflutter.so (offset 0x1152000)
#5 pc 00007fa6 /data/app/com.transportguide-WcJ3OA4Tg6GfQqDwge1YXw==/lib/x86/libflutter.so (offset 0x1152000)
#6 pc 00075493 /data/app/com.transportguide-WcJ3OA4Tg6GfQqDwge1YXw==/lib/x86/libflutter.so (offset 0x1152000)
#7 pc 0001c083 /data/app/com.transportguide-WcJ3OA4Tg6GfQqDwge1YXw==/lib/x86/libflutter.so (offset 0x1152000)
#8 pc 0001ec8b /data/app/com.transportguide-WcJ3OA4Tg6GfQqDwge1YXw==/lib/x86/libflutter.so (offset 0x1152000)
#9 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.
Param timeInSeconds
doesn't work for param. Checked sources - FlutterFlexibleToastPlugin.kt
- time
value is not used. Please fix it
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.