add pdf generator

This commit is contained in:
tzw
2024-02-22 17:16:19 +06:30
parent c33d3dda8a
commit cd3a05e064
9 changed files with 139 additions and 27 deletions

View File

@@ -250,6 +250,7 @@ class AuthFb {
StreamSubscription<fb.User?>? authListener;
Future<void> _start() async {
await authListener?.cancel();
authListener = _fb.authStateChanges().listen((firebaseUser) {
if (firebaseUser == null) {
controller.add(null);
@@ -261,12 +262,8 @@ class AuthFb {
}
void _stop() {
if (userListener != null) {
userListener!.cancel();
}
if (authListener != null) {
authListener!.cancel();
}
userListener?.cancel();
authListener?.cancel();
}
controller = StreamController<User?>(