fix mainmodel
This commit is contained in:
@@ -4,6 +4,7 @@ import 'dart:io';
|
||||
import 'package:cloud_firestore/cloud_firestore.dart';
|
||||
import 'package:device_info/device_info.dart';
|
||||
import 'package:dio/dio.dart';
|
||||
import 'package:fcs/fcs/common/services/services.dart';
|
||||
import 'package:fcs/vo/payment_method.dart';
|
||||
import 'package:firebase_auth/firebase_auth.dart';
|
||||
import 'package:firebase_messaging/firebase_messaging.dart';
|
||||
@@ -80,6 +81,9 @@ class MainModel extends ChangeNotifier {
|
||||
// notifyListeners();
|
||||
// });
|
||||
_loadFcs();
|
||||
Services.instance.authService.onAuthStatus().listen((event) {
|
||||
print("main event-->$event");
|
||||
});
|
||||
}
|
||||
|
||||
List<PaymentMethod> get paymentMethods {
|
||||
@@ -300,7 +304,7 @@ class MainModel extends ChangeNotifier {
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
// super.dispose();
|
||||
super.dispose();
|
||||
// if (this.userListener != null) {
|
||||
// this.userListener.cancel();
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user