2023-04-20 15:32:50 +00:00
|
|
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
2023-05-09 16:24:11 +00:00
|
|
|
import 'package:stackwallet/models/isar/stack_theme.dart';
|
2023-05-09 21:57:40 +00:00
|
|
|
import 'package:stackwallet/themes/stack_colors.dart';
|
|
|
|
import 'package:stackwallet/themes/theme_service.dart';
|
2023-04-20 15:32:50 +00:00
|
|
|
|
|
|
|
final applicationThemesDirectoryPathProvider = StateProvider((ref) => "");
|
|
|
|
|
2023-04-24 14:36:12 +00:00
|
|
|
final colorProvider = StateProvider<StackColors>(
|
|
|
|
(ref) => StackColors.fromStackColorTheme(
|
|
|
|
ref.watch(themeProvider.state).state,
|
|
|
|
),
|
|
|
|
);
|
|
|
|
|
2023-05-09 21:57:40 +00:00
|
|
|
final themeProvider = StateProvider<StackTheme>(
|
|
|
|
(ref) => ref.watch(
|
|
|
|
pThemeService.select(
|
|
|
|
(value) => value.getTheme(
|
|
|
|
themeId: "light",
|
|
|
|
)!,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|