Open BryanYin opened 9 months ago
me too
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[CSToastStyle horizontalIntervalPadding]: unrecognized selector sent to instance 0x600003191380' First throw call stack: ( 0 CoreFoundation 0x000000010e954761 exceptionPreprocess + 242 1 libobjc.A.dylib 0x000000010dcff904 objc_exception_throw + 48 2 CoreFoundation 0x000000010e969873 +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0 3 CoreFoundation 0x000000010e958ef4 __forwarding + 1459 4 CoreFoundation 0x000000010e95b0f8 _CF_forwarding_prep_0 + 120 5 TUICore 0x000000010aa28992 -[UIView(TUIToast) toastViewForMessage:title:image:style:] + 4338 6 TUICore 0x000000010aa2659e -[UIView(TUIToast) makeToast:duration:position:style:] + 142 7 fluttertoast 0x000000010a9999b2 56-[FluttertoastPlugin makeToast:duration:position:style:]_block_invoke + 98 8 libdispatch.dylib 0x0000000114d9c9f7 _dispatch_client_callout + 8 9 libdispatch.dylib 0x0000000114d9fc04 _dispatch_continuation_pop + 812 10 libdispatch.dylib 0x0000000114db5a2d _dispatch_source_invoke + 2228 11 libdispatch.dylib 0x0000000114dac6bf _dispatch_main_queue_drain + 955 12 libdispatch.dylib 0x0000000114dac2f6 _dispatch_main_queue_callback_4CF + 31 13 CoreFoundation 0x000000010e8b0dc4 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9 14 CoreFoundation 0x000000010e8ab6ff CFRunLoopRun + 2463 15 CoreFoundation 0x000000010e8aa97d CFRunLoopRunSpecific + 557 16 GraphicsServices 0x000000011bf2708f GSEventRunModal + 137 17 UIKitCore 0x000000012fff053d -[UIApplication _run] + 972 18 UIKitCore 0x000000012fff4fab UIApplicationMain + 123 19 Runner 0x0000000100a11e2f main + 63 20 dyld 0x000000010950a3e0 start_sim + 10 21 ??? 0x0000000200d20386 0x0 + 8603698054 ) libc++abi: terminating due to uncaught exception of type NSException
@qianYuanJ Just FYI, I switched to https://pub.dev/packages/overlay_support it also supports toast, with global overlay, it supports toast without BuildContext param.
Thank you very much for your help. I wish you no errors, no warnings, and no bug
Below error happens on iOS 17, does anyone knows how to fix it?