mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-09 12:19:24 +00:00
replace ThemeType enum with themeId Strings
This commit is contained in:
parent
80a23c4bee
commit
d182fd2740
18 changed files with 375 additions and 477 deletions
|
@ -60,7 +60,6 @@ import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart';
|
||||||
import 'package:stackwallet/utilities/logger.dart';
|
import 'package:stackwallet/utilities/logger.dart';
|
||||||
import 'package:stackwallet/utilities/prefs.dart';
|
import 'package:stackwallet/utilities/prefs.dart';
|
||||||
import 'package:stackwallet/utilities/stack_file_system.dart';
|
import 'package:stackwallet/utilities/stack_file_system.dart';
|
||||||
import 'package:stackwallet/utilities/theme/color_theme.dart';
|
|
||||||
import 'package:stackwallet/utilities/util.dart';
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
import 'package:stackwallet/widgets/crypto_notifications.dart';
|
import 'package:stackwallet/widgets/crypto_notifications.dart';
|
||||||
import 'package:window_size/window_size.dart';
|
import 'package:window_size/window_size.dart';
|
||||||
|
@ -343,25 +342,22 @@ class _MaterialAppWithThemeState extends ConsumerState<MaterialAppWithTheme>
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
StackColorTheme colorTheme;
|
String themeId;
|
||||||
if (ref.read(prefsChangeNotifierProvider).enableSystemBrightness) {
|
if (ref.read(prefsChangeNotifierProvider).enableSystemBrightness) {
|
||||||
final brightness = WidgetsBinding.instance.window.platformBrightness;
|
final brightness = WidgetsBinding.instance.window.platformBrightness;
|
||||||
switch (brightness) {
|
switch (brightness) {
|
||||||
case Brightness.dark:
|
case Brightness.dark:
|
||||||
colorTheme = ref
|
themeId =
|
||||||
.read(prefsChangeNotifierProvider)
|
ref.read(prefsChangeNotifierProvider).systemBrightnessDarkThemeId;
|
||||||
.systemBrightnessDarkTheme
|
|
||||||
.colorTheme;
|
|
||||||
break;
|
break;
|
||||||
case Brightness.light:
|
case Brightness.light:
|
||||||
colorTheme = ref
|
themeId = ref
|
||||||
.read(prefsChangeNotifierProvider)
|
.read(prefsChangeNotifierProvider)
|
||||||
.systemBrightnessLightTheme
|
.systemBrightnessLightThemeId;
|
||||||
.colorTheme;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
colorTheme = ref.read(prefsChangeNotifierProvider).theme.colorTheme;
|
themeId = ref.read(prefsChangeNotifierProvider).themeId;
|
||||||
}
|
}
|
||||||
|
|
||||||
loadingCompleter = Completer();
|
loadingCompleter = Completer();
|
||||||
|
@ -401,19 +397,16 @@ class _MaterialAppWithThemeState extends ConsumerState<MaterialAppWithTheme>
|
||||||
});
|
});
|
||||||
|
|
||||||
WidgetsBinding.instance.window.onPlatformBrightnessChanged = () {
|
WidgetsBinding.instance.window.onPlatformBrightnessChanged = () {
|
||||||
StackColorTheme colorTheme;
|
String themeId;
|
||||||
switch (WidgetsBinding.instance.window.platformBrightness) {
|
switch (WidgetsBinding.instance.window.platformBrightness) {
|
||||||
case Brightness.dark:
|
case Brightness.dark:
|
||||||
colorTheme = ref
|
themeId =
|
||||||
.read(prefsChangeNotifierProvider)
|
ref.read(prefsChangeNotifierProvider).systemBrightnessDarkThemeId;
|
||||||
.systemBrightnessDarkTheme
|
|
||||||
.colorTheme;
|
|
||||||
break;
|
break;
|
||||||
case Brightness.light:
|
case Brightness.light:
|
||||||
colorTheme = ref
|
themeId = ref
|
||||||
.read(prefsChangeNotifierProvider)
|
.read(prefsChangeNotifierProvider)
|
||||||
.systemBrightnessLightTheme
|
.systemBrightnessLightThemeId;
|
||||||
.colorTheme;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ class StackTheme {
|
||||||
|
|
||||||
/// id of theme on themes server
|
/// id of theme on themes server
|
||||||
@Index(unique: true, replace: true)
|
@Index(unique: true, replace: true)
|
||||||
final String idOnServer;
|
final String themeId;
|
||||||
|
|
||||||
/// the theme name that will be displayed in app
|
/// the theme name that will be displayed in app
|
||||||
final String name;
|
final String name;
|
||||||
|
@ -1472,7 +1472,7 @@ class StackTheme {
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
StackTheme({
|
StackTheme({
|
||||||
required this.idOnServer,
|
required this.themeId,
|
||||||
required this.name,
|
required this.name,
|
||||||
required this.assets,
|
required this.assets,
|
||||||
required this.brightnessString,
|
required this.brightnessString,
|
||||||
|
@ -1637,7 +1637,7 @@ class StackTheme {
|
||||||
required String applicationThemesDirectoryPath,
|
required String applicationThemesDirectoryPath,
|
||||||
}) {
|
}) {
|
||||||
return StackTheme(
|
return StackTheme(
|
||||||
idOnServer: json["id"] as String,
|
themeId: json["id"] as String,
|
||||||
name: json["name"] as String,
|
name: json["name"] as String,
|
||||||
brightnessString: json["brightness"] as String,
|
brightnessString: json["brightness"] as String,
|
||||||
backgroundInt: parseColor(json["colors"]["background"] as String),
|
backgroundInt: parseColor(json["colors"]["background"] as String),
|
||||||
|
|
|
@ -39,12 +39,12 @@ class _ThemeOptionsWidgetState extends ConsumerState<ThemeOptionsWidget> {
|
||||||
case Brightness.dark:
|
case Brightness.dark:
|
||||||
theme = ref
|
theme = ref
|
||||||
.read(prefsChangeNotifierProvider.notifier)
|
.read(prefsChangeNotifierProvider.notifier)
|
||||||
.systemBrightnessDarkTheme;
|
.systemBrightnessDarkThemeId;
|
||||||
break;
|
break;
|
||||||
case Brightness.light:
|
case Brightness.light:
|
||||||
theme = ref
|
theme = ref
|
||||||
.read(prefsChangeNotifierProvider.notifier)
|
.read(prefsChangeNotifierProvider.notifier)
|
||||||
.systemBrightnessLightTheme;
|
.systemBrightnessLightThemeId;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ class _ThemeOptionsWidgetState extends ConsumerState<ThemeOptionsWidget> {
|
||||||
final theme = ThemeType.values[index];
|
final theme = ThemeType.values[index];
|
||||||
|
|
||||||
// save theme setting
|
// save theme setting
|
||||||
ref.read(prefsChangeNotifierProvider.notifier).theme = theme;
|
ref.read(prefsChangeNotifierProvider.notifier).themeId = theme;
|
||||||
|
|
||||||
// apply theme
|
// apply theme
|
||||||
// ref.read(colorThemeProvider.notifier).state =
|
// ref.read(colorThemeProvider.notifier).state =
|
||||||
|
@ -88,8 +88,8 @@ class _ThemeOptionsWidgetState extends ConsumerState<ThemeOptionsWidget> {
|
||||||
if (ref.read(prefsChangeNotifierProvider).enableSystemBrightness) {
|
if (ref.read(prefsChangeNotifierProvider).enableSystemBrightness) {
|
||||||
_current = ThemeType.values.length;
|
_current = ThemeType.values.length;
|
||||||
} else {
|
} else {
|
||||||
_current =
|
_current = ThemeType.values
|
||||||
ThemeType.values.indexOf(ref.read(prefsChangeNotifierProvider).theme);
|
.indexOf(ref.read(prefsChangeNotifierProvider).themeId);
|
||||||
}
|
}
|
||||||
|
|
||||||
super.initState();
|
super.initState();
|
||||||
|
|
|
@ -24,7 +24,7 @@ class SystemBrightnessThemeSelectionView extends ConsumerWidget {
|
||||||
}) {
|
}) {
|
||||||
final brightness = MediaQuery.of(context).platformBrightness;
|
final brightness = MediaQuery.of(context).platformBrightness;
|
||||||
if (isDark) {
|
if (isDark) {
|
||||||
ref.read(prefsChangeNotifierProvider).systemBrightnessDarkTheme = type;
|
ref.read(prefsChangeNotifierProvider).systemBrightnessDarkThemeId = type;
|
||||||
if (brightness == Brightness.dark) {
|
if (brightness == Brightness.dark) {
|
||||||
throw Exception("aaaaaaaaaaaaaaaa");
|
throw Exception("aaaaaaaaaaaaaaaa");
|
||||||
// ref.read(themeProvider.notifier).state =
|
// ref.read(themeProvider.notifier).state =
|
||||||
|
@ -33,7 +33,7 @@ class SystemBrightnessThemeSelectionView extends ConsumerWidget {
|
||||||
// );
|
// );
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ref.read(prefsChangeNotifierProvider).systemBrightnessLightTheme = type;
|
ref.read(prefsChangeNotifierProvider).systemBrightnessLightThemeId = type;
|
||||||
if (brightness == Brightness.light) {
|
if (brightness == Brightness.light) {
|
||||||
throw Exception("aaaaaaaaaaaaaaaa");
|
throw Exception("aaaaaaaaaaaaaaaa");
|
||||||
// ref.read(colorThemeProvider.notifier).state =
|
// ref.read(colorThemeProvider.notifier).state =
|
||||||
|
@ -123,7 +123,7 @@ class SystemBrightnessThemeSelectionView extends ConsumerWidget {
|
||||||
ref
|
ref
|
||||||
.read(
|
.read(
|
||||||
prefsChangeNotifierProvider)
|
prefsChangeNotifierProvider)
|
||||||
.systemBrightnessLightTheme !=
|
.systemBrightnessLightThemeId !=
|
||||||
value) {
|
value) {
|
||||||
_setTheme(
|
_setTheme(
|
||||||
context: context,
|
context: context,
|
||||||
|
@ -137,7 +137,7 @@ class SystemBrightnessThemeSelectionView extends ConsumerWidget {
|
||||||
groupValue: ref.watch(
|
groupValue: ref.watch(
|
||||||
prefsChangeNotifierProvider.select(
|
prefsChangeNotifierProvider.select(
|
||||||
(value) => value
|
(value) => value
|
||||||
.systemBrightnessLightTheme)),
|
.systemBrightnessLightThemeId)),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
@ -181,7 +181,7 @@ class SystemBrightnessThemeSelectionView extends ConsumerWidget {
|
||||||
ref
|
ref
|
||||||
.read(
|
.read(
|
||||||
prefsChangeNotifierProvider)
|
prefsChangeNotifierProvider)
|
||||||
.systemBrightnessDarkTheme !=
|
.systemBrightnessDarkThemeId !=
|
||||||
value) {
|
value) {
|
||||||
_setTheme(
|
_setTheme(
|
||||||
context: context,
|
context: context,
|
||||||
|
@ -195,7 +195,7 @@ class SystemBrightnessThemeSelectionView extends ConsumerWidget {
|
||||||
groupValue: ref.watch(
|
groupValue: ref.watch(
|
||||||
prefsChangeNotifierProvider.select(
|
prefsChangeNotifierProvider.select(
|
||||||
(value) => value
|
(value) => value
|
||||||
.systemBrightnessDarkTheme)),
|
.systemBrightnessDarkThemeId)),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
|
import 'dart:io';
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
|
@ -13,7 +14,6 @@ import 'package:stackwallet/themes/theme_providers.dart';
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/color_theme.dart';
|
|
||||||
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/utilities/util.dart';
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
import 'package:stackwallet/widgets/conditional_parent.dart';
|
import 'package:stackwallet/widgets/conditional_parent.dart';
|
||||||
|
@ -307,10 +307,11 @@ class _PrivacyToggleState extends ConsumerState<PrivacyToggle> {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final bool lightChan =
|
final easyFile =
|
||||||
ref.read(themeProvider.state).state.themeType == ThemeType.chan;
|
ref.watch(themeProvider.select((value) => value.assets.personaEasy));
|
||||||
final bool darkChan =
|
final incognitoFile = ref
|
||||||
ref.read(themeProvider.state).state.themeType == ThemeType.darkChans;
|
.watch(themeProvider.select((value) => value.assets.personaIncognito));
|
||||||
|
|
||||||
return Row(
|
return Row(
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
|
@ -347,15 +348,15 @@ class _PrivacyToggleState extends ConsumerState<PrivacyToggle> {
|
||||||
Column(
|
Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||||
children: [
|
children: [
|
||||||
(lightChan || darkChan)
|
(easyFile.endsWith(".png"))
|
||||||
? Image(
|
? Image.file(
|
||||||
image: AssetImage(Assets.png.chanEasy),
|
File(
|
||||||
)
|
easyFile,
|
||||||
: SvgPicture.asset(
|
|
||||||
ref.watch(
|
|
||||||
themeProvider.select(
|
|
||||||
(value) => value.assets.personaEasy,
|
|
||||||
),
|
),
|
||||||
|
)
|
||||||
|
: SvgPicture.file(
|
||||||
|
File(
|
||||||
|
easyFile,
|
||||||
),
|
),
|
||||||
width: 140,
|
width: 140,
|
||||||
height: 140,
|
height: 140,
|
||||||
|
@ -456,15 +457,15 @@ class _PrivacyToggleState extends ConsumerState<PrivacyToggle> {
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 10,
|
height: 10,
|
||||||
),
|
),
|
||||||
(lightChan || darkChan)
|
(incognitoFile.endsWith(".png"))
|
||||||
? Image(
|
? Image.file(
|
||||||
image: AssetImage(Assets.png.chanIncognito),
|
File(
|
||||||
)
|
incognitoFile,
|
||||||
: SvgPicture.asset(
|
|
||||||
ref.watch(
|
|
||||||
themeProvider.select(
|
|
||||||
(value) => value.assets.personaIncognito,
|
|
||||||
),
|
),
|
||||||
|
)
|
||||||
|
: SvgPicture.file(
|
||||||
|
File(
|
||||||
|
incognitoFile,
|
||||||
),
|
),
|
||||||
width: 140,
|
width: 140,
|
||||||
height: 140,
|
height: 140,
|
||||||
|
|
|
@ -5,7 +5,6 @@ import 'package:stackwallet/pages/add_wallet_views/add_wallet_view/add_wallet_vi
|
||||||
import 'package:stackwallet/themes/theme_providers.dart';
|
import 'package:stackwallet/themes/theme_providers.dart';
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/color_theme.dart';
|
|
||||||
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/utilities/util.dart';
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
|
|
||||||
|
@ -17,12 +16,6 @@ class EmptyWallets extends ConsumerWidget {
|
||||||
debugPrint("BUILD: $runtimeType");
|
debugPrint("BUILD: $runtimeType");
|
||||||
|
|
||||||
final isDesktop = Util.isDesktop;
|
final isDesktop = Util.isDesktop;
|
||||||
final bool isSorbet =
|
|
||||||
ref.read(themeProvider.state).state.themeType == ThemeType.fruitSorbet;
|
|
||||||
final bool isForest =
|
|
||||||
ref.read(themeProvider.state).state.themeType == ThemeType.forest;
|
|
||||||
final bool isOcean =
|
|
||||||
ref.read(themeProvider.state).state.themeType == ThemeType.oceanBreeze;
|
|
||||||
|
|
||||||
return SafeArea(
|
return SafeArea(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
|
@ -102,8 +95,8 @@ class AddWalletButton extends ConsumerWidget {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context, WidgetRef ref) {
|
Widget build(BuildContext context, WidgetRef ref) {
|
||||||
final bool isOLED =
|
final bool isOLED = ref.watch(themeProvider).themeId == "oled_black";
|
||||||
ref.read(themeProvider.state).state.themeType == ThemeType.oledBlack;
|
|
||||||
return TextButton(
|
return TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
|
|
|
@ -6,7 +6,6 @@ import 'package:stackwallet/pages/wallets_view/sub_widgets/empty_wallets.dart';
|
||||||
import 'package:stackwallet/pages/wallets_view/sub_widgets/favorite_wallets.dart';
|
import 'package:stackwallet/pages/wallets_view/sub_widgets/favorite_wallets.dart';
|
||||||
import 'package:stackwallet/providers/providers.dart';
|
import 'package:stackwallet/providers/providers.dart';
|
||||||
import 'package:stackwallet/themes/theme_providers.dart';
|
import 'package:stackwallet/themes/theme_providers.dart';
|
||||||
import 'package:stackwallet/utilities/theme/color_theme.dart';
|
|
||||||
|
|
||||||
class WalletsView extends ConsumerWidget {
|
class WalletsView extends ConsumerWidget {
|
||||||
const WalletsView({Key? key}) : super(key: key);
|
const WalletsView({Key? key}) : super(key: key);
|
||||||
|
@ -25,9 +24,8 @@ class WalletsView extends ConsumerWidget {
|
||||||
child: hasWallets
|
child: hasWallets
|
||||||
? Padding(
|
? Padding(
|
||||||
padding: EdgeInsets.only(
|
padding: EdgeInsets.only(
|
||||||
top: ref.watch(themeProvider).themeType == ThemeType.fruitSorbet
|
top:
|
||||||
? 6
|
ref.watch(themeProvider).themeId == "fruit_sorbet" ? 6 : 20,
|
||||||
: 20,
|
|
||||||
),
|
),
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
|
import 'dart:io';
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
|
@ -11,7 +12,6 @@ import 'package:stackwallet/themes/theme_providers.dart';
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/color_theme.dart';
|
|
||||||
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/utilities/util.dart';
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
import 'package:stackwallet/widgets/desktop/desktop_dialog.dart';
|
import 'package:stackwallet/widgets/desktop/desktop_dialog.dart';
|
||||||
|
@ -226,10 +226,11 @@ class _PrivacyToggleState extends ConsumerState<PrivacyToggle> {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final bool lightChan =
|
final easyFile =
|
||||||
ref.read(themeProvider.state).state.themeType == ThemeType.chan;
|
ref.watch(themeProvider.select((value) => value.assets.personaEasy));
|
||||||
final bool darkChan =
|
final incognitoFile = ref
|
||||||
ref.read(themeProvider.state).state.themeType == ThemeType.darkChans;
|
.watch(themeProvider.select((value) => value.assets.personaIncognito));
|
||||||
|
|
||||||
return Row(
|
return Row(
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
|
@ -272,19 +273,17 @@ class _PrivacyToggleState extends ConsumerState<PrivacyToggle> {
|
||||||
height: 10,
|
height: 10,
|
||||||
),
|
),
|
||||||
//
|
//
|
||||||
(lightChan || darkChan)
|
(easyFile.endsWith(".png"))
|
||||||
? Image(
|
? Image.file(
|
||||||
image: AssetImage(
|
File(
|
||||||
Assets.png.chanEasy,
|
easyFile,
|
||||||
),
|
),
|
||||||
width: 120,
|
width: 120,
|
||||||
height: 120,
|
height: 120,
|
||||||
)
|
)
|
||||||
: SvgPicture.asset(
|
: SvgPicture.file(
|
||||||
ref.watch(
|
File(
|
||||||
themeProvider.select(
|
easyFile,
|
||||||
(value) => value.assets.personaEasy,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
width: 120,
|
width: 120,
|
||||||
height: 120,
|
height: 120,
|
||||||
|
@ -390,17 +389,17 @@ class _PrivacyToggleState extends ConsumerState<PrivacyToggle> {
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 10,
|
height: 10,
|
||||||
),
|
),
|
||||||
(lightChan || darkChan)
|
(incognitoFile.endsWith(".png"))
|
||||||
? Image(
|
? Image.file(
|
||||||
image: AssetImage(Assets.png.chanIncognito),
|
File(
|
||||||
|
incognitoFile,
|
||||||
|
),
|
||||||
width: 120,
|
width: 120,
|
||||||
height: 120,
|
height: 120,
|
||||||
)
|
)
|
||||||
: SvgPicture.asset(
|
: SvgPicture.file(
|
||||||
ref.watch(
|
File(
|
||||||
themeProvider.select(
|
incognitoFile,
|
||||||
(value) => value.assets.personaIncognito,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
width: 120,
|
width: 120,
|
||||||
height: 120,
|
height: 120,
|
||||||
|
|
|
@ -235,7 +235,7 @@ class _ThemeToggle extends ConsumerState<ThemeToggle> {
|
||||||
onTap: () {
|
onTap: () {
|
||||||
if (ref.read(themeProvider.notifier).state.themeType !=
|
if (ref.read(themeProvider.notifier).state.themeType !=
|
||||||
ThemeType.values[i]) {
|
ThemeType.values[i]) {
|
||||||
ref.read(prefsChangeNotifierProvider.notifier).theme =
|
ref.read(prefsChangeNotifierProvider.notifier).themeId =
|
||||||
ThemeType.values[i];
|
ThemeType.values[i];
|
||||||
|
|
||||||
throw Exception(
|
throw Exception(
|
||||||
|
|
|
@ -4,7 +4,6 @@ import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart';
|
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart';
|
||||||
import 'package:stackwallet/utilities/enums/languages_enum.dart';
|
import 'package:stackwallet/utilities/enums/languages_enum.dart';
|
||||||
import 'package:stackwallet/utilities/enums/sync_type_enum.dart';
|
import 'package:stackwallet/utilities/enums/sync_type_enum.dart';
|
||||||
import 'package:stackwallet/utilities/theme/color_theme.dart';
|
|
||||||
import 'package:uuid/uuid.dart';
|
import 'package:uuid/uuid.dart';
|
||||||
|
|
||||||
class Prefs extends ChangeNotifier {
|
class Prefs extends ChangeNotifier {
|
||||||
|
@ -44,9 +43,9 @@ class Prefs extends ChangeNotifier {
|
||||||
_signupEpoch = await _getSignupEpoch();
|
_signupEpoch = await _getSignupEpoch();
|
||||||
_enableCoinControl = await _getEnableCoinControl();
|
_enableCoinControl = await _getEnableCoinControl();
|
||||||
_enableSystemBrightness = await _getEnableSystemBrightness();
|
_enableSystemBrightness = await _getEnableSystemBrightness();
|
||||||
_theme = await _getTheme();
|
_themeId = await _getThemeId();
|
||||||
_systemBrightnessLightTheme = await _getSystemBrightnessLightTheme();
|
_systemBrightnessLightThemeId = await _getSystemBrightnessLightThemeId();
|
||||||
_systemBrightnessDarkTheme = await _getSystemBrightnessDarkTheme();
|
_systemBrightnessDarkThemeId = await _getSystemBrightnessDarkTheme();
|
||||||
|
|
||||||
_initialized = true;
|
_initialized = true;
|
||||||
}
|
}
|
||||||
|
@ -720,72 +719,81 @@ class Prefs extends ChangeNotifier {
|
||||||
false;
|
false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// system brightness light theme name
|
// current theme id
|
||||||
|
|
||||||
ThemeType _theme = ThemeType.light;
|
String _themeId = "light";
|
||||||
|
|
||||||
ThemeType get theme => _theme;
|
String get themeId => _themeId;
|
||||||
|
|
||||||
set theme(ThemeType theme) {
|
set themeId(String themeId) {
|
||||||
if (this.theme != theme) {
|
if (this.themeId != themeId) {
|
||||||
DB.instance.put<dynamic>(
|
DB.instance.put<dynamic>(
|
||||||
boxName: DB.boxNamePrefs, key: "theme", value: theme.name);
|
boxName: DB.boxNamePrefs,
|
||||||
_theme = theme;
|
key: "themeId",
|
||||||
|
value: themeId,
|
||||||
|
);
|
||||||
|
_themeId = themeId;
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<ThemeType> _getTheme() async {
|
Future<String> _getThemeId() async {
|
||||||
return ThemeTypeExt.fromName(await DB.instance
|
return await DB.instance.get<dynamic>(
|
||||||
.get<dynamic>(boxName: DB.boxNamePrefs, key: "theme") as String? ??
|
boxName: DB.boxNamePrefs,
|
||||||
ThemeType.light.name);
|
key: "themeId",
|
||||||
|
) as String? ??
|
||||||
|
"light";
|
||||||
}
|
}
|
||||||
|
|
||||||
// system brightness light theme name
|
// current system brightness light theme id
|
||||||
|
|
||||||
ThemeType _systemBrightnessLightTheme = ThemeType.light;
|
String _systemBrightnessLightThemeId = "light";
|
||||||
|
|
||||||
ThemeType get systemBrightnessLightTheme => _systemBrightnessLightTheme;
|
String get systemBrightnessLightThemeId => _systemBrightnessLightThemeId;
|
||||||
|
|
||||||
set systemBrightnessLightTheme(ThemeType systemBrightnessLightTheme) {
|
set systemBrightnessLightThemeId(String systemBrightnessLightThemeId) {
|
||||||
if (this.systemBrightnessLightTheme != systemBrightnessLightTheme) {
|
if (this.systemBrightnessLightThemeId != systemBrightnessLightThemeId) {
|
||||||
DB.instance.put<dynamic>(
|
DB.instance.put<dynamic>(
|
||||||
boxName: DB.boxNamePrefs,
|
boxName: DB.boxNamePrefs,
|
||||||
key: "systemBrightnessLightTheme",
|
key: "systemBrightnessLightThemeId",
|
||||||
value: systemBrightnessLightTheme.name);
|
value: systemBrightnessLightThemeId,
|
||||||
_systemBrightnessLightTheme = systemBrightnessLightTheme;
|
);
|
||||||
|
_systemBrightnessLightThemeId = systemBrightnessLightThemeId;
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<ThemeType> _getSystemBrightnessLightTheme() async {
|
Future<String> _getSystemBrightnessLightThemeId() async {
|
||||||
return ThemeTypeExt.fromName(await DB.instance.get<dynamic>(
|
return await DB.instance.get<dynamic>(
|
||||||
boxName: DB.boxNamePrefs,
|
boxName: DB.boxNamePrefs,
|
||||||
key: "systemBrightnessLightTheme") as String? ??
|
key: "systemBrightnessLightThemeId",
|
||||||
ThemeType.light.name);
|
) as String? ??
|
||||||
|
"light";
|
||||||
}
|
}
|
||||||
|
|
||||||
// system brightness dark theme name
|
// current system brightness dark theme id
|
||||||
|
|
||||||
ThemeType _systemBrightnessDarkTheme = ThemeType.dark;
|
String _systemBrightnessDarkThemeId = "dark";
|
||||||
|
|
||||||
ThemeType get systemBrightnessDarkTheme => _systemBrightnessDarkTheme;
|
String get systemBrightnessDarkThemeId => _systemBrightnessDarkThemeId;
|
||||||
|
|
||||||
set systemBrightnessDarkTheme(ThemeType systemBrightnessDarkTheme) {
|
set systemBrightnessDarkThemeId(String systemBrightnessDarkThemeId) {
|
||||||
if (this.systemBrightnessDarkTheme != systemBrightnessDarkTheme) {
|
if (this.systemBrightnessDarkThemeId != systemBrightnessDarkThemeId) {
|
||||||
DB.instance.put<dynamic>(
|
DB.instance.put<dynamic>(
|
||||||
boxName: DB.boxNamePrefs,
|
boxName: DB.boxNamePrefs,
|
||||||
key: "systemBrightnessDarkTheme",
|
key: "systemBrightnessDarkThemeId",
|
||||||
value: systemBrightnessDarkTheme.name);
|
value: systemBrightnessDarkThemeId,
|
||||||
_systemBrightnessDarkTheme = systemBrightnessDarkTheme;
|
);
|
||||||
|
_systemBrightnessDarkThemeId = systemBrightnessDarkThemeId;
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<ThemeType> _getSystemBrightnessDarkTheme() async {
|
Future<String> _getSystemBrightnessDarkTheme() async {
|
||||||
return ThemeTypeExt.fromName(await DB.instance.get<dynamic>(
|
return await DB.instance.get<dynamic>(
|
||||||
boxName: DB.boxNamePrefs,
|
boxName: DB.boxNamePrefs,
|
||||||
key: "systemBrightnessDarkTheme") as String? ??
|
key: "systemBrightnessDarkThemeId",
|
||||||
ThemeType.dark.name);
|
) as String? ??
|
||||||
|
"dark";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,304 +1,207 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
import 'package:stackwallet/utilities/theme/chan_colors.dart';
|
|
||||||
import 'package:stackwallet/utilities/theme/dark_colors.dart';
|
|
||||||
import 'package:stackwallet/utilities/theme/forest_colors.dart';
|
|
||||||
import 'package:stackwallet/utilities/theme/fruit_sorbet_colors.dart';
|
|
||||||
import 'package:stackwallet/utilities/theme/light_colors.dart';
|
|
||||||
import 'package:stackwallet/utilities/theme/ocean_breeze_colors.dart';
|
|
||||||
import 'package:stackwallet/utilities/theme/oled_black_colors.dart';
|
|
||||||
import 'package:stackwallet/utilities/theme/oled_chans_colors.dart';
|
|
||||||
import 'package:stackwallet/utilities/theme/orange_colors.dart';
|
|
||||||
|
|
||||||
enum ThemeType {
|
// abstract class StackColorTheme {
|
||||||
light,
|
// String get themeId;
|
||||||
dark,
|
// Brightness get brightness;
|
||||||
oceanBreeze,
|
//
|
||||||
oledBlack,
|
// Color get background;
|
||||||
orange,
|
// Color get backgroundAppBar;
|
||||||
fruitSorbet,
|
//
|
||||||
forest,
|
// Gradient? get gradientBackground;
|
||||||
chan,
|
//
|
||||||
darkChans;
|
// Color get overlay;
|
||||||
}
|
//
|
||||||
|
// Color get accentColorBlue;
|
||||||
// adjust this file
|
// Color get accentColorGreen;
|
||||||
|
// Color get accentColorYellow;
|
||||||
extension ThemeTypeExt on ThemeType {
|
// Color get accentColorRed;
|
||||||
static ThemeType fromName(String name) {
|
// Color get accentColorOrange;
|
||||||
switch (name) {
|
// Color get accentColorDark;
|
||||||
case "light":
|
//
|
||||||
return ThemeType.light;
|
// Color get shadow;
|
||||||
case "chan":
|
//
|
||||||
return ThemeType.chan;
|
// Color get textDark;
|
||||||
case "dark":
|
// Color get textDark2;
|
||||||
return ThemeType.dark;
|
// Color get textDark3;
|
||||||
case "oceanBreeze":
|
// Color get textSubtitle1;
|
||||||
return ThemeType.oceanBreeze;
|
// Color get textSubtitle2;
|
||||||
case "oledBlack":
|
// Color get textSubtitle3;
|
||||||
return ThemeType.oledBlack;
|
// Color get textSubtitle4;
|
||||||
case "orange":
|
// Color get textSubtitle5;
|
||||||
return ThemeType.orange;
|
// Color get textSubtitle6;
|
||||||
case "fruitSorbet":
|
// Color get textWhite;
|
||||||
return ThemeType.fruitSorbet;
|
// Color get textFavoriteCard;
|
||||||
case "forest":
|
// Color get textError;
|
||||||
return ThemeType.forest;
|
// Color get textRestore;
|
||||||
case "darkChans":
|
//
|
||||||
return ThemeType.darkChans;
|
// // button background
|
||||||
default:
|
// Color get buttonBackPrimary;
|
||||||
throw ArgumentError("Invalid theme name");
|
// Color get buttonBackSecondary;
|
||||||
}
|
// Color get buttonBackPrimaryDisabled;
|
||||||
}
|
// Color get buttonBackSecondaryDisabled;
|
||||||
|
// Color get buttonBackBorder;
|
||||||
StackColorTheme get colorTheme {
|
// Color get buttonBackBorderDisabled;
|
||||||
switch (this) {
|
// Color get buttonBackBorderSecondary;
|
||||||
case ThemeType.light:
|
// Color get buttonBackBorderSecondaryDisabled;
|
||||||
return LightColors();
|
// Color get numberBackDefault;
|
||||||
case ThemeType.chan:
|
// Color get numpadBackDefault;
|
||||||
return ChanColors();
|
// Color get bottomNavBack;
|
||||||
case ThemeType.dark:
|
//
|
||||||
return DarkColors();
|
// // button text/element
|
||||||
case ThemeType.oceanBreeze:
|
// Color get buttonTextPrimary;
|
||||||
return OceanBreezeColors();
|
// Color get buttonTextSecondary;
|
||||||
case ThemeType.oledBlack:
|
// Color get buttonTextPrimaryDisabled;
|
||||||
return OledBlackColors();
|
// Color get buttonTextSecondaryDisabled;
|
||||||
case ThemeType.orange:
|
// Color get buttonTextBorder;
|
||||||
return OrangeColors();
|
// Color get buttonTextDisabled;
|
||||||
case ThemeType.fruitSorbet:
|
// Color get buttonTextBorderless;
|
||||||
return FruitSorbetColors();
|
// Color get buttonTextBorderlessDisabled;
|
||||||
case ThemeType.forest:
|
// Color get numberTextDefault;
|
||||||
return ForestColors();
|
// Color get numpadTextDefault;
|
||||||
case ThemeType.darkChans:
|
// Color get bottomNavText;
|
||||||
return DarkChansColors();
|
// Color get customTextButtonEnabledText;
|
||||||
}
|
// Color get customTextButtonDisabledText;
|
||||||
}
|
//
|
||||||
|
// // switch background
|
||||||
String get prettyName {
|
// Color get switchBGOn;
|
||||||
switch (this) {
|
// Color get switchBGOff;
|
||||||
case ThemeType.light:
|
// Color get switchBGDisabled;
|
||||||
return "Light";
|
//
|
||||||
case ThemeType.chan:
|
// // switch circle
|
||||||
return "Crypto Chans";
|
// Color get switchCircleOn;
|
||||||
case ThemeType.dark:
|
// Color get switchCircleOff;
|
||||||
return "Dark";
|
// Color get switchCircleDisabled;
|
||||||
case ThemeType.oceanBreeze:
|
//
|
||||||
return "Ocean Breeze";
|
// // step indicator background
|
||||||
case ThemeType.oledBlack:
|
// Color get stepIndicatorBGCheck;
|
||||||
return "OLED Black";
|
// Color get stepIndicatorBGNumber;
|
||||||
case ThemeType.orange:
|
// Color get stepIndicatorBGInactive;
|
||||||
return "Orange";
|
// Color get stepIndicatorBGLines;
|
||||||
case ThemeType.fruitSorbet:
|
// Color get stepIndicatorBGLinesInactive;
|
||||||
return "Fruit Sorbet";
|
// Color get stepIndicatorIconText;
|
||||||
case ThemeType.forest:
|
// Color get stepIndicatorIconNumber;
|
||||||
return "Forest";
|
// Color get stepIndicatorIconInactive;
|
||||||
case ThemeType.darkChans:
|
//
|
||||||
return "Dark Chans";
|
// // checkbox
|
||||||
}
|
// Color get checkboxBGChecked;
|
||||||
}
|
// Color get checkboxBorderEmpty;
|
||||||
}
|
// Color get checkboxBGDisabled;
|
||||||
|
// Color get checkboxIconChecked;
|
||||||
abstract class StackColorTheme {
|
// Color get checkboxIconDisabled;
|
||||||
ThemeType get themeType;
|
// Color get checkboxTextLabel;
|
||||||
Brightness get brightness;
|
//
|
||||||
|
// // snack bar
|
||||||
Color get background;
|
// Color get snackBarBackSuccess;
|
||||||
Color get backgroundAppBar;
|
// Color get snackBarBackError;
|
||||||
|
// Color get snackBarBackInfo;
|
||||||
Gradient? get gradientBackground;
|
// Color get snackBarTextSuccess;
|
||||||
|
// Color get snackBarTextError;
|
||||||
Color get overlay;
|
// Color get snackBarTextInfo;
|
||||||
|
//
|
||||||
Color get accentColorBlue;
|
// // icons
|
||||||
Color get accentColorGreen;
|
// Color get bottomNavIconBack;
|
||||||
Color get accentColorYellow;
|
// Color get bottomNavIconIcon;
|
||||||
Color get accentColorRed;
|
// Color get topNavIconPrimary;
|
||||||
Color get accentColorOrange;
|
// Color get topNavIconGreen;
|
||||||
Color get accentColorDark;
|
// Color get topNavIconYellow;
|
||||||
|
// Color get topNavIconRed;
|
||||||
Color get shadow;
|
// Color get settingsIconBack;
|
||||||
|
// Color get settingsIconIcon;
|
||||||
Color get textDark;
|
// Color get settingsIconBack2;
|
||||||
Color get textDark2;
|
// Color get settingsIconElement;
|
||||||
Color get textDark3;
|
//
|
||||||
Color get textSubtitle1;
|
// // text field
|
||||||
Color get textSubtitle2;
|
// Color get textFieldActiveBG;
|
||||||
Color get textSubtitle3;
|
// Color get textFieldDefaultBG;
|
||||||
Color get textSubtitle4;
|
// Color get textFieldErrorBG;
|
||||||
Color get textSubtitle5;
|
// Color get textFieldSuccessBG;
|
||||||
Color get textSubtitle6;
|
// Color get textFieldErrorBorder;
|
||||||
Color get textWhite;
|
// Color get textFieldSuccessBorder;
|
||||||
Color get textFavoriteCard;
|
// Color get textFieldActiveSearchIconLeft;
|
||||||
Color get textError;
|
// Color get textFieldDefaultSearchIconLeft;
|
||||||
Color get textRestore;
|
// Color get textFieldErrorSearchIconLeft;
|
||||||
|
// Color get textFieldSuccessSearchIconLeft;
|
||||||
// button background
|
// Color get textFieldActiveText;
|
||||||
Color get buttonBackPrimary;
|
// Color get textFieldDefaultText;
|
||||||
Color get buttonBackSecondary;
|
// Color get textFieldErrorText;
|
||||||
Color get buttonBackPrimaryDisabled;
|
// Color get textFieldSuccessText;
|
||||||
Color get buttonBackSecondaryDisabled;
|
// Color get textFieldActiveLabel;
|
||||||
Color get buttonBackBorder;
|
// Color get textFieldErrorLabel;
|
||||||
Color get buttonBackBorderDisabled;
|
// Color get textFieldSuccessLabel;
|
||||||
Color get buttonBackBorderSecondary;
|
// Color get textFieldActiveSearchIconRight;
|
||||||
Color get buttonBackBorderSecondaryDisabled;
|
// Color get textFieldDefaultSearchIconRight;
|
||||||
Color get numberBackDefault;
|
// Color get textFieldErrorSearchIconRight;
|
||||||
Color get numpadBackDefault;
|
// Color get textFieldSuccessSearchIconRight;
|
||||||
Color get bottomNavBack;
|
//
|
||||||
|
// // settings item level2
|
||||||
// button text/element
|
// Color get settingsItem2ActiveBG;
|
||||||
Color get buttonTextPrimary;
|
// Color get settingsItem2ActiveText;
|
||||||
Color get buttonTextSecondary;
|
// Color get settingsItem2ActiveSub;
|
||||||
Color get buttonTextPrimaryDisabled;
|
//
|
||||||
Color get buttonTextSecondaryDisabled;
|
// // radio buttons
|
||||||
Color get buttonTextBorder;
|
// Color get radioButtonIconBorder;
|
||||||
Color get buttonTextDisabled;
|
// Color get radioButtonIconBorderDisabled;
|
||||||
Color get buttonTextBorderless;
|
// Color get radioButtonBorderEnabled;
|
||||||
Color get buttonTextBorderlessDisabled;
|
// Color get radioButtonBorderDisabled;
|
||||||
Color get numberTextDefault;
|
// Color get radioButtonIconCircle;
|
||||||
Color get numpadTextDefault;
|
// Color get radioButtonIconEnabled;
|
||||||
Color get bottomNavText;
|
// Color get radioButtonTextEnabled;
|
||||||
Color get customTextButtonEnabledText;
|
// Color get radioButtonTextDisabled;
|
||||||
Color get customTextButtonDisabledText;
|
// Color get radioButtonLabelEnabled;
|
||||||
|
// Color get radioButtonLabelDisabled;
|
||||||
// switch background
|
//
|
||||||
Color get switchBGOn;
|
// // info text
|
||||||
Color get switchBGOff;
|
// Color get infoItemBG;
|
||||||
Color get switchBGDisabled;
|
// Color get infoItemLabel;
|
||||||
|
// Color get infoItemText;
|
||||||
// switch circle
|
// Color get infoItemIcons;
|
||||||
Color get switchCircleOn;
|
//
|
||||||
Color get switchCircleOff;
|
// // popup
|
||||||
Color get switchCircleDisabled;
|
// Color get popupBG;
|
||||||
|
//
|
||||||
// step indicator background
|
// // currency list
|
||||||
Color get stepIndicatorBGCheck;
|
// Color get currencyListItemBG;
|
||||||
Color get stepIndicatorBGNumber;
|
//
|
||||||
Color get stepIndicatorBGInactive;
|
// // bottom nav
|
||||||
Color get stepIndicatorBGLines;
|
// Color get stackWalletBG;
|
||||||
Color get stepIndicatorBGLinesInactive;
|
// Color get stackWalletMid;
|
||||||
Color get stepIndicatorIconText;
|
// Color get stackWalletBottom;
|
||||||
Color get stepIndicatorIconNumber;
|
// Color get bottomNavShadow;
|
||||||
Color get stepIndicatorIconInactive;
|
//
|
||||||
|
// Color get favoriteStarActive;
|
||||||
// checkbox
|
// Color get favoriteStarInactive;
|
||||||
Color get checkboxBGChecked;
|
//
|
||||||
Color get checkboxBorderEmpty;
|
// Color get splash;
|
||||||
Color get checkboxBGDisabled;
|
// Color get highlight;
|
||||||
Color get checkboxIconChecked;
|
// Color get warningForeground;
|
||||||
Color get checkboxIconDisabled;
|
// Color get warningBackground;
|
||||||
Color get checkboxTextLabel;
|
//
|
||||||
|
// Color get loadingOverlayTextColor;
|
||||||
// snack bar
|
// Color get myStackContactIconBG;
|
||||||
Color get snackBarBackSuccess;
|
// Color get textConfirmTotalAmount;
|
||||||
Color get snackBarBackError;
|
// Color get textSelectedWordTableItem;
|
||||||
Color get snackBarBackInfo;
|
//
|
||||||
Color get snackBarTextSuccess;
|
// // rate type toggle
|
||||||
Color get snackBarTextError;
|
// Color get rateTypeToggleColorOn;
|
||||||
Color get snackBarTextInfo;
|
// Color get rateTypeToggleColorOff;
|
||||||
|
// Color get rateTypeToggleDesktopColorOn;
|
||||||
// icons
|
// Color get rateTypeToggleDesktopColorOff;
|
||||||
Color get bottomNavIconBack;
|
//
|
||||||
Color get bottomNavIconIcon;
|
// // token view colors
|
||||||
Color get topNavIconPrimary;
|
// Color get ethTagText;
|
||||||
Color get topNavIconGreen;
|
// Color get ethTagBG;
|
||||||
Color get topNavIconYellow;
|
// Color get ethWalletTagText;
|
||||||
Color get topNavIconRed;
|
// Color get ethWalletTagBG;
|
||||||
Color get settingsIconBack;
|
// Color get tokenSummaryTextPrimary;
|
||||||
Color get settingsIconIcon;
|
// Color get tokenSummaryTextSecondary;
|
||||||
Color get settingsIconBack2;
|
// Color get tokenSummaryBG;
|
||||||
Color get settingsIconElement;
|
// Color get tokenSummaryButtonBG;
|
||||||
|
// Color get tokenSummaryIcon;
|
||||||
// text field
|
//
|
||||||
Color get textFieldActiveBG;
|
// BoxShadow get standardBoxShadow;
|
||||||
Color get textFieldDefaultBG;
|
// BoxShadow? get homeViewButtonBarBoxShadow;
|
||||||
Color get textFieldErrorBG;
|
// }
|
||||||
Color get textFieldSuccessBG;
|
|
||||||
Color get textFieldErrorBorder;
|
|
||||||
Color get textFieldSuccessBorder;
|
|
||||||
Color get textFieldActiveSearchIconLeft;
|
|
||||||
Color get textFieldDefaultSearchIconLeft;
|
|
||||||
Color get textFieldErrorSearchIconLeft;
|
|
||||||
Color get textFieldSuccessSearchIconLeft;
|
|
||||||
Color get textFieldActiveText;
|
|
||||||
Color get textFieldDefaultText;
|
|
||||||
Color get textFieldErrorText;
|
|
||||||
Color get textFieldSuccessText;
|
|
||||||
Color get textFieldActiveLabel;
|
|
||||||
Color get textFieldErrorLabel;
|
|
||||||
Color get textFieldSuccessLabel;
|
|
||||||
Color get textFieldActiveSearchIconRight;
|
|
||||||
Color get textFieldDefaultSearchIconRight;
|
|
||||||
Color get textFieldErrorSearchIconRight;
|
|
||||||
Color get textFieldSuccessSearchIconRight;
|
|
||||||
|
|
||||||
// settings item level2
|
|
||||||
Color get settingsItem2ActiveBG;
|
|
||||||
Color get settingsItem2ActiveText;
|
|
||||||
Color get settingsItem2ActiveSub;
|
|
||||||
|
|
||||||
// radio buttons
|
|
||||||
Color get radioButtonIconBorder;
|
|
||||||
Color get radioButtonIconBorderDisabled;
|
|
||||||
Color get radioButtonBorderEnabled;
|
|
||||||
Color get radioButtonBorderDisabled;
|
|
||||||
Color get radioButtonIconCircle;
|
|
||||||
Color get radioButtonIconEnabled;
|
|
||||||
Color get radioButtonTextEnabled;
|
|
||||||
Color get radioButtonTextDisabled;
|
|
||||||
Color get radioButtonLabelEnabled;
|
|
||||||
Color get radioButtonLabelDisabled;
|
|
||||||
|
|
||||||
// info text
|
|
||||||
Color get infoItemBG;
|
|
||||||
Color get infoItemLabel;
|
|
||||||
Color get infoItemText;
|
|
||||||
Color get infoItemIcons;
|
|
||||||
|
|
||||||
// popup
|
|
||||||
Color get popupBG;
|
|
||||||
|
|
||||||
// currency list
|
|
||||||
Color get currencyListItemBG;
|
|
||||||
|
|
||||||
// bottom nav
|
|
||||||
Color get stackWalletBG;
|
|
||||||
Color get stackWalletMid;
|
|
||||||
Color get stackWalletBottom;
|
|
||||||
Color get bottomNavShadow;
|
|
||||||
|
|
||||||
Color get favoriteStarActive;
|
|
||||||
Color get favoriteStarInactive;
|
|
||||||
|
|
||||||
Color get splash;
|
|
||||||
Color get highlight;
|
|
||||||
Color get warningForeground;
|
|
||||||
Color get warningBackground;
|
|
||||||
|
|
||||||
Color get loadingOverlayTextColor;
|
|
||||||
Color get myStackContactIconBG;
|
|
||||||
Color get textConfirmTotalAmount;
|
|
||||||
Color get textSelectedWordTableItem;
|
|
||||||
|
|
||||||
// rate type toggle
|
|
||||||
Color get rateTypeToggleColorOn;
|
|
||||||
Color get rateTypeToggleColorOff;
|
|
||||||
Color get rateTypeToggleDesktopColorOn;
|
|
||||||
Color get rateTypeToggleDesktopColorOff;
|
|
||||||
|
|
||||||
// token view colors
|
|
||||||
Color get ethTagText;
|
|
||||||
Color get ethTagBG;
|
|
||||||
Color get ethWalletTagText;
|
|
||||||
Color get ethWalletTagBG;
|
|
||||||
Color get tokenSummaryTextPrimary;
|
|
||||||
Color get tokenSummaryTextSecondary;
|
|
||||||
Color get tokenSummaryBG;
|
|
||||||
Color get tokenSummaryButtonBG;
|
|
||||||
Color get tokenSummaryIcon;
|
|
||||||
|
|
||||||
BoxShadow get standardBoxShadow;
|
|
||||||
BoxShadow? get homeViewButtonBarBoxShadow;
|
|
||||||
}
|
|
||||||
// 0xFFFFD8CE
|
|
||||||
|
|
||||||
const kCoinThemeColorDefaults = CoinThemeColorDefault();
|
const kCoinThemeColorDefaults = CoinThemeColorDefault();
|
||||||
|
|
||||||
|
|
|
@ -362,7 +362,7 @@ class StackColors extends ThemeExtension<StackColors> {
|
||||||
|
|
||||||
factory StackColors.fromStackColorTheme(StackTheme colorTheme) {
|
factory StackColors.fromStackColorTheme(StackTheme colorTheme) {
|
||||||
return StackColors(
|
return StackColors(
|
||||||
themeId: colorTheme.idOnServer,
|
themeId: colorTheme.themeId,
|
||||||
brightness: colorTheme.brightness,
|
brightness: colorTheme.brightness,
|
||||||
background: colorTheme.background,
|
background: colorTheme.background,
|
||||||
backgroundAppBar: colorTheme.backgroundAppBar,
|
backgroundAppBar: colorTheme.backgroundAppBar,
|
||||||
|
|
|
@ -680,12 +680,12 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
_i8.ThemeType get theme => (super.noSuchMethod(
|
_i8.ThemeType get themeId => (super.noSuchMethod(
|
||||||
Invocation.getter(#theme),
|
Invocation.getter(#theme),
|
||||||
returnValue: _i8.ThemeType.light,
|
returnValue: _i8.ThemeType.light,
|
||||||
) as _i8.ThemeType);
|
) as _i8.ThemeType);
|
||||||
@override
|
@override
|
||||||
set theme(_i8.ThemeType? theme) => super.noSuchMethod(
|
set themeId(_i8.ThemeType? theme) => super.noSuchMethod(
|
||||||
Invocation.setter(
|
Invocation.setter(
|
||||||
#theme,
|
#theme,
|
||||||
theme,
|
theme,
|
||||||
|
@ -693,12 +693,12 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
_i8.ThemeType get systemBrightnessLightTheme => (super.noSuchMethod(
|
_i8.ThemeType get systemBrightnessLightThemeId => (super.noSuchMethod(
|
||||||
Invocation.getter(#systemBrightnessLightTheme),
|
Invocation.getter(#systemBrightnessLightTheme),
|
||||||
returnValue: _i8.ThemeType.light,
|
returnValue: _i8.ThemeType.light,
|
||||||
) as _i8.ThemeType);
|
) as _i8.ThemeType);
|
||||||
@override
|
@override
|
||||||
set systemBrightnessLightTheme(_i8.ThemeType? systemBrightnessLightTheme) =>
|
set systemBrightnessLightThemeId(_i8.ThemeType? systemBrightnessLightTheme) =>
|
||||||
super.noSuchMethod(
|
super.noSuchMethod(
|
||||||
Invocation.setter(
|
Invocation.setter(
|
||||||
#systemBrightnessLightTheme,
|
#systemBrightnessLightTheme,
|
||||||
|
@ -707,12 +707,12 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
_i8.ThemeType get systemBrightnessDarkTheme => (super.noSuchMethod(
|
_i8.ThemeType get systemBrightnessDarkThemeId => (super.noSuchMethod(
|
||||||
Invocation.getter(#systemBrightnessDarkTheme),
|
Invocation.getter(#systemBrightnessDarkTheme),
|
||||||
returnValue: _i8.ThemeType.light,
|
returnValue: _i8.ThemeType.light,
|
||||||
) as _i8.ThemeType);
|
) as _i8.ThemeType);
|
||||||
@override
|
@override
|
||||||
set systemBrightnessDarkTheme(_i8.ThemeType? systemBrightnessDarkTheme) =>
|
set systemBrightnessDarkThemeId(_i8.ThemeType? systemBrightnessDarkTheme) =>
|
||||||
super.noSuchMethod(
|
super.noSuchMethod(
|
||||||
Invocation.setter(
|
Invocation.setter(
|
||||||
#systemBrightnessDarkTheme,
|
#systemBrightnessDarkTheme,
|
||||||
|
|
|
@ -401,12 +401,12 @@ class MockPrefs extends _i1.Mock implements _i4.Prefs {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
_i7.ThemeType get theme => (super.noSuchMethod(
|
_i7.ThemeType get themeId => (super.noSuchMethod(
|
||||||
Invocation.getter(#theme),
|
Invocation.getter(#theme),
|
||||||
returnValue: _i7.ThemeType.light,
|
returnValue: _i7.ThemeType.light,
|
||||||
) as _i7.ThemeType);
|
) as _i7.ThemeType);
|
||||||
@override
|
@override
|
||||||
set theme(_i7.ThemeType? theme) => super.noSuchMethod(
|
set themeId(_i7.ThemeType? theme) => super.noSuchMethod(
|
||||||
Invocation.setter(
|
Invocation.setter(
|
||||||
#theme,
|
#theme,
|
||||||
theme,
|
theme,
|
||||||
|
@ -414,12 +414,12 @@ class MockPrefs extends _i1.Mock implements _i4.Prefs {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
_i7.ThemeType get systemBrightnessLightTheme => (super.noSuchMethod(
|
_i7.ThemeType get systemBrightnessLightThemeId => (super.noSuchMethod(
|
||||||
Invocation.getter(#systemBrightnessLightTheme),
|
Invocation.getter(#systemBrightnessLightTheme),
|
||||||
returnValue: _i7.ThemeType.light,
|
returnValue: _i7.ThemeType.light,
|
||||||
) as _i7.ThemeType);
|
) as _i7.ThemeType);
|
||||||
@override
|
@override
|
||||||
set systemBrightnessLightTheme(_i7.ThemeType? systemBrightnessLightTheme) =>
|
set systemBrightnessLightThemeId(_i7.ThemeType? systemBrightnessLightTheme) =>
|
||||||
super.noSuchMethod(
|
super.noSuchMethod(
|
||||||
Invocation.setter(
|
Invocation.setter(
|
||||||
#systemBrightnessLightTheme,
|
#systemBrightnessLightTheme,
|
||||||
|
@ -428,12 +428,12 @@ class MockPrefs extends _i1.Mock implements _i4.Prefs {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
_i7.ThemeType get systemBrightnessDarkTheme => (super.noSuchMethod(
|
_i7.ThemeType get systemBrightnessDarkThemeId => (super.noSuchMethod(
|
||||||
Invocation.getter(#systemBrightnessDarkTheme),
|
Invocation.getter(#systemBrightnessDarkTheme),
|
||||||
returnValue: _i7.ThemeType.light,
|
returnValue: _i7.ThemeType.light,
|
||||||
) as _i7.ThemeType);
|
) as _i7.ThemeType);
|
||||||
@override
|
@override
|
||||||
set systemBrightnessDarkTheme(_i7.ThemeType? systemBrightnessDarkTheme) =>
|
set systemBrightnessDarkThemeId(_i7.ThemeType? systemBrightnessDarkTheme) =>
|
||||||
super.noSuchMethod(
|
super.noSuchMethod(
|
||||||
Invocation.setter(
|
Invocation.setter(
|
||||||
#systemBrightnessDarkTheme,
|
#systemBrightnessDarkTheme,
|
||||||
|
|
|
@ -2520,12 +2520,12 @@ class MockPrefs extends _i1.Mock implements _i24.Prefs {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
_i34.ThemeType get theme => (super.noSuchMethod(
|
_i34.ThemeType get themeId => (super.noSuchMethod(
|
||||||
Invocation.getter(#theme),
|
Invocation.getter(#theme),
|
||||||
returnValue: _i34.ThemeType.light,
|
returnValue: _i34.ThemeType.light,
|
||||||
) as _i34.ThemeType);
|
) as _i34.ThemeType);
|
||||||
@override
|
@override
|
||||||
set theme(_i34.ThemeType? theme) => super.noSuchMethod(
|
set themeId(_i34.ThemeType? theme) => super.noSuchMethod(
|
||||||
Invocation.setter(
|
Invocation.setter(
|
||||||
#theme,
|
#theme,
|
||||||
theme,
|
theme,
|
||||||
|
@ -2533,12 +2533,13 @@ class MockPrefs extends _i1.Mock implements _i24.Prefs {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
_i34.ThemeType get systemBrightnessLightTheme => (super.noSuchMethod(
|
_i34.ThemeType get systemBrightnessLightThemeId => (super.noSuchMethod(
|
||||||
Invocation.getter(#systemBrightnessLightTheme),
|
Invocation.getter(#systemBrightnessLightTheme),
|
||||||
returnValue: _i34.ThemeType.light,
|
returnValue: _i34.ThemeType.light,
|
||||||
) as _i34.ThemeType);
|
) as _i34.ThemeType);
|
||||||
@override
|
@override
|
||||||
set systemBrightnessLightTheme(_i34.ThemeType? systemBrightnessLightTheme) =>
|
set systemBrightnessLightThemeId(
|
||||||
|
_i34.ThemeType? systemBrightnessLightTheme) =>
|
||||||
super.noSuchMethod(
|
super.noSuchMethod(
|
||||||
Invocation.setter(
|
Invocation.setter(
|
||||||
#systemBrightnessLightTheme,
|
#systemBrightnessLightTheme,
|
||||||
|
@ -2547,12 +2548,12 @@ class MockPrefs extends _i1.Mock implements _i24.Prefs {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
_i34.ThemeType get systemBrightnessDarkTheme => (super.noSuchMethod(
|
_i34.ThemeType get systemBrightnessDarkThemeId => (super.noSuchMethod(
|
||||||
Invocation.getter(#systemBrightnessDarkTheme),
|
Invocation.getter(#systemBrightnessDarkTheme),
|
||||||
returnValue: _i34.ThemeType.light,
|
returnValue: _i34.ThemeType.light,
|
||||||
) as _i34.ThemeType);
|
) as _i34.ThemeType);
|
||||||
@override
|
@override
|
||||||
set systemBrightnessDarkTheme(_i34.ThemeType? systemBrightnessDarkTheme) =>
|
set systemBrightnessDarkThemeId(_i34.ThemeType? systemBrightnessDarkTheme) =>
|
||||||
super.noSuchMethod(
|
super.noSuchMethod(
|
||||||
Invocation.setter(
|
Invocation.setter(
|
||||||
#systemBrightnessDarkTheme,
|
#systemBrightnessDarkTheme,
|
||||||
|
|
|
@ -351,12 +351,12 @@ class MockPrefs extends _i1.Mock implements _i3.Prefs {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
_i6.ThemeType get theme => (super.noSuchMethod(
|
_i6.ThemeType get themeId => (super.noSuchMethod(
|
||||||
Invocation.getter(#theme),
|
Invocation.getter(#theme),
|
||||||
returnValue: _i6.ThemeType.light,
|
returnValue: _i6.ThemeType.light,
|
||||||
) as _i6.ThemeType);
|
) as _i6.ThemeType);
|
||||||
@override
|
@override
|
||||||
set theme(_i6.ThemeType? theme) => super.noSuchMethod(
|
set themeId(_i6.ThemeType? theme) => super.noSuchMethod(
|
||||||
Invocation.setter(
|
Invocation.setter(
|
||||||
#theme,
|
#theme,
|
||||||
theme,
|
theme,
|
||||||
|
@ -364,12 +364,12 @@ class MockPrefs extends _i1.Mock implements _i3.Prefs {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
_i6.ThemeType get systemBrightnessLightTheme => (super.noSuchMethod(
|
_i6.ThemeType get systemBrightnessLightThemeId => (super.noSuchMethod(
|
||||||
Invocation.getter(#systemBrightnessLightTheme),
|
Invocation.getter(#systemBrightnessLightTheme),
|
||||||
returnValue: _i6.ThemeType.light,
|
returnValue: _i6.ThemeType.light,
|
||||||
) as _i6.ThemeType);
|
) as _i6.ThemeType);
|
||||||
@override
|
@override
|
||||||
set systemBrightnessLightTheme(_i6.ThemeType? systemBrightnessLightTheme) =>
|
set systemBrightnessLightThemeId(_i6.ThemeType? systemBrightnessLightTheme) =>
|
||||||
super.noSuchMethod(
|
super.noSuchMethod(
|
||||||
Invocation.setter(
|
Invocation.setter(
|
||||||
#systemBrightnessLightTheme,
|
#systemBrightnessLightTheme,
|
||||||
|
@ -378,12 +378,12 @@ class MockPrefs extends _i1.Mock implements _i3.Prefs {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
_i6.ThemeType get systemBrightnessDarkTheme => (super.noSuchMethod(
|
_i6.ThemeType get systemBrightnessDarkThemeId => (super.noSuchMethod(
|
||||||
Invocation.getter(#systemBrightnessDarkTheme),
|
Invocation.getter(#systemBrightnessDarkTheme),
|
||||||
returnValue: _i6.ThemeType.light,
|
returnValue: _i6.ThemeType.light,
|
||||||
) as _i6.ThemeType);
|
) as _i6.ThemeType);
|
||||||
@override
|
@override
|
||||||
set systemBrightnessDarkTheme(_i6.ThemeType? systemBrightnessDarkTheme) =>
|
set systemBrightnessDarkThemeId(_i6.ThemeType? systemBrightnessDarkTheme) =>
|
||||||
super.noSuchMethod(
|
super.noSuchMethod(
|
||||||
Invocation.setter(
|
Invocation.setter(
|
||||||
#systemBrightnessDarkTheme,
|
#systemBrightnessDarkTheme,
|
||||||
|
|
|
@ -589,12 +589,12 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
_i16.ThemeType get theme => (super.noSuchMethod(
|
_i16.ThemeType get themeId => (super.noSuchMethod(
|
||||||
Invocation.getter(#theme),
|
Invocation.getter(#theme),
|
||||||
returnValue: _i16.ThemeType.light,
|
returnValue: _i16.ThemeType.light,
|
||||||
) as _i16.ThemeType);
|
) as _i16.ThemeType);
|
||||||
@override
|
@override
|
||||||
set theme(_i16.ThemeType? theme) => super.noSuchMethod(
|
set themeId(_i16.ThemeType? theme) => super.noSuchMethod(
|
||||||
Invocation.setter(
|
Invocation.setter(
|
||||||
#theme,
|
#theme,
|
||||||
theme,
|
theme,
|
||||||
|
@ -602,12 +602,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
_i16.ThemeType get systemBrightnessLightTheme => (super.noSuchMethod(
|
_i16.ThemeType get systemBrightnessLightThemeId => (super.noSuchMethod(
|
||||||
Invocation.getter(#systemBrightnessLightTheme),
|
Invocation.getter(#systemBrightnessLightTheme),
|
||||||
returnValue: _i16.ThemeType.light,
|
returnValue: _i16.ThemeType.light,
|
||||||
) as _i16.ThemeType);
|
) as _i16.ThemeType);
|
||||||
@override
|
@override
|
||||||
set systemBrightnessLightTheme(_i16.ThemeType? systemBrightnessLightTheme) =>
|
set systemBrightnessLightThemeId(
|
||||||
|
_i16.ThemeType? systemBrightnessLightTheme) =>
|
||||||
super.noSuchMethod(
|
super.noSuchMethod(
|
||||||
Invocation.setter(
|
Invocation.setter(
|
||||||
#systemBrightnessLightTheme,
|
#systemBrightnessLightTheme,
|
||||||
|
@ -616,12 +617,12 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
_i16.ThemeType get systemBrightnessDarkTheme => (super.noSuchMethod(
|
_i16.ThemeType get systemBrightnessDarkThemeId => (super.noSuchMethod(
|
||||||
Invocation.getter(#systemBrightnessDarkTheme),
|
Invocation.getter(#systemBrightnessDarkTheme),
|
||||||
returnValue: _i16.ThemeType.light,
|
returnValue: _i16.ThemeType.light,
|
||||||
) as _i16.ThemeType);
|
) as _i16.ThemeType);
|
||||||
@override
|
@override
|
||||||
set systemBrightnessDarkTheme(_i16.ThemeType? systemBrightnessDarkTheme) =>
|
set systemBrightnessDarkThemeId(_i16.ThemeType? systemBrightnessDarkTheme) =>
|
||||||
super.noSuchMethod(
|
super.noSuchMethod(
|
||||||
Invocation.setter(
|
Invocation.setter(
|
||||||
#systemBrightnessDarkTheme,
|
#systemBrightnessDarkTheme,
|
||||||
|
|
|
@ -2452,12 +2452,12 @@ class MockPrefs extends _i1.Mock implements _i19.Prefs {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
_i27.ThemeType get theme => (super.noSuchMethod(
|
_i27.ThemeType get themeId => (super.noSuchMethod(
|
||||||
Invocation.getter(#theme),
|
Invocation.getter(#theme),
|
||||||
returnValue: _i27.ThemeType.light,
|
returnValue: _i27.ThemeType.light,
|
||||||
) as _i27.ThemeType);
|
) as _i27.ThemeType);
|
||||||
@override
|
@override
|
||||||
set theme(_i27.ThemeType? theme) => super.noSuchMethod(
|
set themeId(_i27.ThemeType? theme) => super.noSuchMethod(
|
||||||
Invocation.setter(
|
Invocation.setter(
|
||||||
#theme,
|
#theme,
|
||||||
theme,
|
theme,
|
||||||
|
@ -2465,12 +2465,13 @@ class MockPrefs extends _i1.Mock implements _i19.Prefs {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
_i27.ThemeType get systemBrightnessLightTheme => (super.noSuchMethod(
|
_i27.ThemeType get systemBrightnessLightThemeId => (super.noSuchMethod(
|
||||||
Invocation.getter(#systemBrightnessLightTheme),
|
Invocation.getter(#systemBrightnessLightTheme),
|
||||||
returnValue: _i27.ThemeType.light,
|
returnValue: _i27.ThemeType.light,
|
||||||
) as _i27.ThemeType);
|
) as _i27.ThemeType);
|
||||||
@override
|
@override
|
||||||
set systemBrightnessLightTheme(_i27.ThemeType? systemBrightnessLightTheme) =>
|
set systemBrightnessLightThemeId(
|
||||||
|
_i27.ThemeType? systemBrightnessLightTheme) =>
|
||||||
super.noSuchMethod(
|
super.noSuchMethod(
|
||||||
Invocation.setter(
|
Invocation.setter(
|
||||||
#systemBrightnessLightTheme,
|
#systemBrightnessLightTheme,
|
||||||
|
@ -2479,12 +2480,12 @@ class MockPrefs extends _i1.Mock implements _i19.Prefs {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
_i27.ThemeType get systemBrightnessDarkTheme => (super.noSuchMethod(
|
_i27.ThemeType get systemBrightnessDarkThemeId => (super.noSuchMethod(
|
||||||
Invocation.getter(#systemBrightnessDarkTheme),
|
Invocation.getter(#systemBrightnessDarkTheme),
|
||||||
returnValue: _i27.ThemeType.light,
|
returnValue: _i27.ThemeType.light,
|
||||||
) as _i27.ThemeType);
|
) as _i27.ThemeType);
|
||||||
@override
|
@override
|
||||||
set systemBrightnessDarkTheme(_i27.ThemeType? systemBrightnessDarkTheme) =>
|
set systemBrightnessDarkThemeId(_i27.ThemeType? systemBrightnessDarkTheme) =>
|
||||||
super.noSuchMethod(
|
super.noSuchMethod(
|
||||||
Invocation.setter(
|
Invocation.setter(
|
||||||
#systemBrightnessDarkTheme,
|
#systemBrightnessDarkTheme,
|
||||||
|
|
Loading…
Reference in a new issue