replaced print with log in theme_cubit.dart

This commit is contained in:
asif
2025-08-30 15:38:36 +05:30
parent 768d312066
commit 596f0a96eb

View File

@@ -1,3 +1,5 @@
import 'dart:developer';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:kmobile/config/theme_type.dart';
import 'package:shared_preferences/shared_preferences.dart';
@@ -17,7 +19,7 @@ class ThemeCubit extends Cubit<ThemeState> {
}
Future<void> changeTheme(ThemeType type) async {
print("Attempting to change theme to: ${type.toString()}");
log("Attempting to change theme...");
final prefs = await SharedPreferences.getInstance();
await prefs.setInt('theme_type', type.index);
emit(ThemeState(themeType: type));