You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I register FlutterLocalNotificationsPlugin like this slL.registerLazySingleton<FlutterLocalNotificationsPlugin>( () => FlutterLocalNotificationsPlugin());, and want to call his show() method it's give me error like this:
I/flutter ( 7792): 'package:get_it/get_it_impl.dart': Failed assertion: line 251 pos 14: 'instanceFactory != null': No type FlutterLocalNotificationsPlugin is registered inside GetIt. I/flutter ( 7792): Did you forget to pass an instance name? I/flutter ( 7792): (Did you accidentally do GetIt sl=GetIt.instance(); instead of GetIt sl=GetIt.instance;did you forget to register it?)
But when I create an instance of FlutterLocalNotificationsPlugin and register an instance of FlutterLocalNotificationsPlugin with GetIt, there are the same hashcode
The text was updated successfully, but these errors were encountered:
I can't give anymore informations. But I register that slL.registerLazySingleton<FlutterLocalNotificationsPlugin>( () => FlutterLocalNotificationsPlugin()); and call it slL<FlutterLocalNotificationsPlugin>()
Uh oh!
There was an error while loading. Please reload this page.
When I register FlutterLocalNotificationsPlugin like this
slL.registerLazySingleton<FlutterLocalNotificationsPlugin>( () => FlutterLocalNotificationsPlugin());
, and want to call hisshow()
method it's give me error like this:I/flutter ( 7792): 'package:get_it/get_it_impl.dart': Failed assertion: line 251 pos 14: 'instanceFactory != null': No type FlutterLocalNotificationsPlugin is registered inside GetIt. I/flutter ( 7792): Did you forget to pass an instance name? I/flutter ( 7792): (Did you accidentally do GetIt sl=GetIt.instance(); instead of GetIt sl=GetIt.instance;did you forget to register it?)
But when I create an instance of FlutterLocalNotificationsPlugin and register an instance of FlutterLocalNotificationsPlugin with GetIt, there are the same hashcode
The text was updated successfully, but these errors were encountered: