diff --git a/lib/src/helpers/AppDate.dart b/lib/src/helpers/AppDate.dart index 670002b47..733643244 100644 --- a/lib/src/helpers/AppDate.dart +++ b/lib/src/helpers/AppDate.dart @@ -28,10 +28,10 @@ class AppDateTime { static final DateTime _initialRealTime = DateTime.now(); static final DateTime _initialDebugTime = DateTime( _initialRealTime.year, - _initialRealTime.month, - _initialRealTime.day, - 13, - 48, + 11, + 1, + 00, + -20, 00, ); diff --git a/lib/src/helpers/riverpod_logger.dart b/lib/src/helpers/riverpod_logger.dart index eba159920..8c46bf338 100644 --- a/lib/src/helpers/riverpod_logger.dart +++ b/lib/src/helpers/riverpod_logger.dart @@ -27,7 +27,7 @@ class RiverpodLogger extends ProviderObserver { Object? newValue, ProviderContainer container, ) { - print(''' + log(''' { "provider": "${provider.name ?? provider.runtimeType}", "newValue": "$newValue", diff --git a/lib/src/state_management/quran/reading/auto_reading/auto_reading_notifier.dart b/lib/src/state_management/quran/reading/auto_reading/auto_reading_notifier.dart index 5bc10ce06..bc33c9bed 100644 --- a/lib/src/state_management/quran/reading/auto_reading/auto_reading_notifier.dart +++ b/lib/src/state_management/quran/reading/auto_reading/auto_reading_notifier.dart @@ -27,7 +27,6 @@ class AutoScrollNotifier extends AutoDisposeNotifier { } void setScrollController(ScrollController controller) { - print('Setting scroll controller...'); scrollController = controller; } @@ -89,8 +88,6 @@ class AutoScrollNotifier extends AutoDisposeNotifier { await Future.delayed(Duration(milliseconds: 100)); _startScrolling(); } catch (e, stackTrace) { - print('Auto-scroll initialization error: $e'); - print('Stacktrace: $stackTrace'); // Fallback state reset state = state.copyWith( @@ -112,13 +109,11 @@ class AutoScrollNotifier extends AutoDisposeNotifier { // Validate initial state if (!state.isPlaying) { - print('Auto-scroll not started: state is not playing'); return; } // Additional safety checks if (scrollController == null) { - print('ScrollController is null'); return; } @@ -131,7 +126,6 @@ class AutoScrollNotifier extends AutoDisposeNotifier { // Prevent infinite attempts if (scrollAttempts > maxScrollAttempts) { - print('Max scroll attempts reached. Stopping auto-scroll.'); timer.cancel(); state = state.copyWith(isPlaying: false); return; @@ -145,10 +139,8 @@ class AutoScrollNotifier extends AutoDisposeNotifier { final delta = state.autoScrollSpeed; // Detailed logging for debugging - print('Max Scroll: $maxScroll, Current Scroll: $currentScroll, Delta: $delta'); if (currentScroll >= maxScroll) { - print('Reached max scroll. Stopping auto-scroll.'); stopAutoScroll(); timer.cancel(); return; @@ -165,15 +157,10 @@ class AutoScrollNotifier extends AutoDisposeNotifier { state = state.copyWith(currentPage: newPage); } } catch (e, stackTrace) { - print('Error during auto-scroll: $e'); - print('Stacktrace: $stackTrace'); timer.cancel(); state = state.copyWith(isPlaying: false); } } else { - print('ScrollController does not have clients or content dimensions'); - print('HasClients: ${scrollController.hasClients}'); - print('HasContentDimensions: ${scrollController.position.hasContentDimensions}'); } }); }