firebase configuration and connect device with real-time bd

This commit is contained in:
mohammad
2025-02-13 14:07:29 +03:00
parent a623f1c723
commit ba44d1d359
40 changed files with 1136 additions and 153 deletions

View File

@ -65,8 +65,6 @@ class HomeBloc extends Bloc<HomeEvent, HomeState> {
emit(LoadingHome());
terms = await HomeApi().fetchTerms();
emit(HomeInitial());
// emit(PolicyAgreement());
} catch (e) {
return;
}
@ -76,8 +74,6 @@ class HomeBloc extends Bloc<HomeEvent, HomeState> {
try {
emit(LoadingHome());
policy = await HomeApi().fetchPolicy();
debugPrint("Fetched policy: $policy");
// Emit a state to trigger the UI update
emit(HomeInitial());
} catch (e) {
debugPrint("Error fetching policy: $e");