Add Beneficiary Animations and Localizations
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
import 'dart:developer';
|
||||
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'theme_state.dart';
|
||||
import 'package:kmobile/config/theme_type.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
@@ -47,14 +45,5 @@ class ThemeCubit extends Cubit<ThemeState> {
|
||||
print('default macthed');
|
||||
}
|
||||
}
|
||||
|
||||
// Future<void> toggleDarkMode(bool isDark) async {
|
||||
// final prefs = await SharedPreferences.getInstance();
|
||||
// await prefs.setBool('is_dark_mode', isDark);
|
||||
|
||||
// emit(state.copyWith(
|
||||
// themeMode: isDark ? ThemeMode.dark : ThemeMode.light,
|
||||
// ));
|
||||
// }
|
||||
}
|
||||
|
||||
|
@@ -1,32 +1,7 @@
|
||||
import 'package:equatable/equatable.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:kmobile/config/theme_type.dart';
|
||||
import 'package:kmobile/config/themes.dart';
|
||||
|
||||
// class ThemeState {
|
||||
// final ThemeData lightTheme;
|
||||
// final ThemeMode themeMode;
|
||||
// final ThemeType themeType;
|
||||
|
||||
// ThemeState({
|
||||
// required this.lightTheme,
|
||||
// required this.themeMode,
|
||||
// required this.themeType,
|
||||
// });
|
||||
|
||||
// ThemeState copyWith({
|
||||
// ThemeData? lightTheme,
|
||||
// ThemeMode? themeMode,
|
||||
// ThemeType? themeType,
|
||||
// }) {
|
||||
// return ThemeState(
|
||||
// lightTheme: lightTheme ?? this.lightTheme,
|
||||
// themeMode: themeMode ?? this.themeMode,
|
||||
// themeType: themeType ?? this.themeType,
|
||||
// );
|
||||
// }
|
||||
// bool get isDarkMode => themeMode == ThemeMode.dark;
|
||||
// }
|
||||
|
||||
abstract class ThemeState extends Equatable {
|
||||
getThemeData();
|
||||
|
Reference in New Issue
Block a user