mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-08-14 17:05:28 -04:00
xfer
This commit is contained in:
parent
411705283d
commit
e369d6091a
8 changed files with 95 additions and 98 deletions
|
@ -203,7 +203,8 @@ class ThemeService {
|
|||
ThemePreferences? themePreferences;
|
||||
if (themePreferencesJson != null) {
|
||||
try {
|
||||
themePreferences = ThemePreferences.fromJson(themePreferencesJson);
|
||||
themePreferences =
|
||||
ThemePreferences.fromJson(jsonDecode(themePreferencesJson));
|
||||
// ignore: avoid_catches_without_on_clauses
|
||||
} catch (_) {
|
||||
// ignore
|
||||
|
@ -273,4 +274,5 @@ class ThemeService {
|
|||
}
|
||||
|
||||
@riverpod
|
||||
Future<ThemeService> themeService() => ThemeService.instance;
|
||||
FutureOr<ThemeService> themeService(ThemeServiceRef ref) async =>
|
||||
await ThemeService.instance;
|
||||
|
|
|
@ -6,7 +6,7 @@ part of 'theme_service.dart';
|
|||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
String _$themeServiceHash() => r'a319ae893d3b5cf5718a0c1a21c22bd073f5fd34';
|
||||
String _$themeServiceHash() => r'87dbacb9df4923f507fb01e486b91d73a3fcef9c';
|
||||
|
||||
/// See also [themeService].
|
||||
@ProviderFor(themeService)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue