PostHog last fixes hopefully

This commit is contained in:
Arseni
2025-12-12 16:39:18 +03:00
parent 67b52af150
commit 6ee146b95a
18 changed files with 317 additions and 54 deletions

View File

@@ -0,0 +1,17 @@
import 'dart:async';
import 'package:pshared/models/account/account.dart';
import 'package:pshared/provider/account.dart';
import 'package:pweb/services/posthog.dart';
class PwebAccountProvider extends AccountProvider {
@override
Future<void> onAccountChanged(Account? previous, Account? current) {
if (current != null) {
return PosthogService.identify(current);
}
return PosthogService.reset();
}
}