11import 'dart:convert' ;
2+ import 'package:flutter/foundation.dart' ;
23import 'package:shared_preferences/shared_preferences.dart' ;
34import 'package:progres/features/transcript/data/models/academic_transcript.dart' ;
45import 'package:progres/features/transcript/data/models/annual_transcript_summary.dart' ;
@@ -27,7 +28,7 @@ class TranscriptCacheService {
2728 );
2829 return true ;
2930 } catch (e) {
30- print ('Error caching transcripts: $e ' );
31+ debugPrint ('Error caching transcripts: $e ' );
3132 return false ;
3233 }
3334 }
@@ -49,7 +50,7 @@ class TranscriptCacheService {
4950 .map ((json) => AcademicTranscript .fromJson (json))
5051 .toList ();
5152 } catch (e) {
52- print ('Error retrieving cached transcripts: $e ' );
53+ debugPrint ('Error retrieving cached transcripts: $e ' );
5354 return null ;
5455 }
5556 }
@@ -71,7 +72,7 @@ class TranscriptCacheService {
7172 );
7273 return true ;
7374 } catch (e) {
74- print ('Error caching annual summary: $e ' );
75+ debugPrint ('Error caching annual summary: $e ' );
7576 return false ;
7677 }
7778 }
@@ -91,7 +92,7 @@ class TranscriptCacheService {
9192 final decodedJson = jsonDecode (summaryString);
9293 return AnnualTranscriptSummary .fromJson (decodedJson);
9394 } catch (e) {
94- print ('Error retrieving cached annual summary: $e ' );
95+ debugPrint ('Error retrieving cached annual summary: $e ' );
9596 return null ;
9697 }
9798 }
@@ -107,7 +108,7 @@ class TranscriptCacheService {
107108
108109 return DateTime .parse (timestamp);
109110 } catch (e) {
110- print ('Error getting last updated time: $e ' );
111+ debugPrint ('Error getting last updated time: $e ' );
111112 return null ;
112113 }
113114 }
@@ -128,7 +129,7 @@ class TranscriptCacheService {
128129 }
129130 return true ;
130131 } catch (e) {
131- print ('Error clearing cache: $e ' );
132+ debugPrint ('Error clearing cache: $e ' );
132133 return false ;
133134 }
134135 }
0 commit comments