notificaciones al pedir servicio y al enviar mensaje de chat
This commit is contained in:
@@ -7,6 +7,7 @@ import 'package:prosappco/blocs/auth_bloc/auth_bloc.dart';
|
||||
import 'package:prosappco/blocs/authentication_bloc/authentication_bloc.dart';
|
||||
import 'package:prosappco/blocs/chat_bloc/chat_bloc.dart';
|
||||
import 'package:prosappco/blocs/my_user_bloc/my_user_bloc.dart';
|
||||
import 'package:prosappco/blocs/notification_bloc/notification_bloc.dart';
|
||||
import 'package:prosappco/blocs/professional_bloc/professional_bloc.dart';
|
||||
import 'package:prosappco/blocs/professional_list_bloc/professional_list_bloc.dart';
|
||||
import 'package:prosappco/blocs/professional_profile_bloc/professional_profile_bloc.dart';
|
||||
@@ -16,6 +17,7 @@ import 'package:prosappco/blocs/service_bloc/service_bloc.dart';
|
||||
import 'package:prosappco/blocs/setting_bloc/setting_bloc.dart';
|
||||
import 'package:prosappco/blocs/sign_up_bloc/sign_up_bloc.dart';
|
||||
import 'package:prosappco/blocs/sing_in_bloc/sign_in_bloc.dart';
|
||||
import 'package:prosappco/local_notifications/local_notifications.dart';
|
||||
import 'package:score_repository/score_repository.dart';
|
||||
import 'package:service_repository/service_repository.dart';
|
||||
import 'package:user_repository/user_repository.dart';
|
||||
@@ -56,6 +58,12 @@ class AppDI {
|
||||
professionalRepository: injector.get(),
|
||||
userRepository: injector.get<UserRepository>()),
|
||||
);
|
||||
injector.registerSingleton(
|
||||
() => NotificationBloc(
|
||||
requestLocalNotificationPermission: LocalNotifications.requestPermissionLocalNotifications,
|
||||
showLocalNotification: LocalNotifications.showLocalNotification,
|
||||
),
|
||||
);
|
||||
|
||||
injector.registerDependency<SignInBloc>(
|
||||
() => SignInBloc(userRepository: injector.get<UserRepository>()));
|
||||
|
||||
Reference in New Issue
Block a user