mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-11 05:04:35 +00:00
notif error fix?
This commit is contained in:
parent
7d1d7cb804
commit
590717560e
1 changed files with 2 additions and 0 deletions
|
@ -13,6 +13,7 @@ import 'dart:async';
|
||||||
import 'package:event_bus/event_bus.dart';
|
import 'package:event_bus/event_bus.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
|
import 'package:stackwallet/providers/global/prefs_provider.dart';
|
||||||
import 'package:stackwallet/services/notifications_api.dart';
|
import 'package:stackwallet/services/notifications_api.dart';
|
||||||
import 'package:stackwallet/themes/coin_icon_provider.dart';
|
import 'package:stackwallet/themes/coin_icon_provider.dart';
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
|
@ -84,6 +85,7 @@ class _CryptoNotificationsState extends ConsumerState<CryptoNotifications> {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
|
NotificationApi.prefs = ref.read(prefsChangeNotifierProvider);
|
||||||
_streamSubscription = CryptoNotificationsEventBus.instance
|
_streamSubscription = CryptoNotificationsEventBus.instance
|
||||||
.on<CryptoNotificationEvent>()
|
.on<CryptoNotificationEvent>()
|
||||||
.listen(
|
.listen(
|
||||||
|
|
Loading…
Reference in a new issue