mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-22 10:34:32 +00:00
desktop notifications fix
This commit is contained in:
parent
20c706c7e5
commit
c9470a5078
1 changed files with 2 additions and 1 deletions
|
@ -13,7 +13,7 @@ import 'dart:async';
|
|||
import 'package:event_bus/event_bus.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:stackwallet/providers/global/prefs_provider.dart';
|
||||
import 'package:stackwallet/providers/providers.dart';
|
||||
import 'package:stackwallet/services/notifications_api.dart';
|
||||
import 'package:stackwallet/themes/coin_icon_provider.dart';
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||
|
@ -86,6 +86,7 @@ class _CryptoNotificationsState extends ConsumerState<CryptoNotifications> {
|
|||
@override
|
||||
void initState() {
|
||||
NotificationApi.prefs = ref.read(prefsChangeNotifierProvider);
|
||||
NotificationApi.notificationsService = ref.read(notificationsProvider);
|
||||
_streamSubscription = CryptoNotificationsEventBus.instance
|
||||
.on<CryptoNotificationEvent>()
|
||||
.listen(
|
||||
|
|
Loading…
Reference in a new issue