mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
replace stackIcon asset images
This commit is contained in:
parent
5ebf9cfb59
commit
68ad1dfb2b
11 changed files with 86 additions and 30 deletions
|
@ -7,13 +7,12 @@ import 'package:stackwallet/notifications/show_flush_bar.dart';
|
|||
import 'package:stackwallet/pages/address_book_views/subviews/contact_details_view.dart';
|
||||
import 'package:stackwallet/pages/exchange_view/exchange_step_views/step_2_view.dart';
|
||||
import 'package:stackwallet/pages/send_view/send_view.dart';
|
||||
import 'package:stackwallet/providers/exchange/exchange_flow_is_active_state_provider.dart';
|
||||
import 'package:stackwallet/providers/global/address_book_service_provider.dart';
|
||||
import 'package:stackwallet/providers/providers.dart';
|
||||
import 'package:stackwallet/themes/theme_providers.dart';
|
||||
import 'package:stackwallet/utilities/assets.dart';
|
||||
import 'package:stackwallet/utilities/clipboard_interface.dart';
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||
import 'package:stackwallet/widgets/rounded_container.dart';
|
||||
|
@ -111,7 +110,12 @@ class ContactPopUp extends ConsumerWidget {
|
|||
child: contact.id == "default"
|
||||
? Center(
|
||||
child: SvgPicture.asset(
|
||||
Assets.svg.stackIcon(context),
|
||||
ref.watch(
|
||||
themeProvider.select(
|
||||
(value) =>
|
||||
value.assets.stackIcon,
|
||||
),
|
||||
),
|
||||
width: 20,
|
||||
),
|
||||
)
|
||||
|
|
|
@ -164,7 +164,11 @@ class _HomeViewState extends ConsumerState<HomeView> {
|
|||
onTap: _hiddenOptions,
|
||||
child: RotateIcon(
|
||||
icon: SvgPicture.asset(
|
||||
Assets.svg.stackIcon(context),
|
||||
ref.watch(
|
||||
themeProvider.select(
|
||||
(value) => value.assets.stackIcon,
|
||||
),
|
||||
),
|
||||
width: 24,
|
||||
height: 24,
|
||||
),
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
import 'package:flutter/gestures.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:flutter_svg/svg.dart';
|
||||
import 'package:stackwallet/pages/stack_privacy_calls.dart';
|
||||
import 'package:stackwallet/pages_desktop_specific/password/create_password_view.dart';
|
||||
import 'package:stackwallet/themes/theme_providers.dart';
|
||||
import 'package:stackwallet/utilities/assets.dart';
|
||||
import 'package:stackwallet/utilities/prefs.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
|
@ -12,16 +14,16 @@ import 'package:stackwallet/widgets/background.dart';
|
|||
import 'package:stackwallet/widgets/desktop/secondary_button.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
|
||||
class IntroView extends StatefulWidget {
|
||||
class IntroView extends ConsumerStatefulWidget {
|
||||
const IntroView({Key? key}) : super(key: key);
|
||||
|
||||
static const String routeName = "/introView";
|
||||
|
||||
@override
|
||||
State<IntroView> createState() => _IntroViewState();
|
||||
ConsumerState<IntroView> createState() => _IntroViewState();
|
||||
}
|
||||
|
||||
class _IntroViewState extends State<IntroView> {
|
||||
class _IntroViewState extends ConsumerState<IntroView> {
|
||||
late final bool isDesktop;
|
||||
|
||||
@override
|
||||
|
@ -116,7 +118,11 @@ class _IntroViewState extends State<IntroView> {
|
|||
width: 130,
|
||||
height: 130,
|
||||
child: SvgPicture.asset(
|
||||
Assets.svg.stackIcon(context),
|
||||
ref.watch(
|
||||
themeProvider.select(
|
||||
(value) => value.assets.stackIcon,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
const Spacer(
|
||||
|
|
|
@ -3,7 +3,6 @@ import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
import 'package:isar/isar.dart';
|
||||
import 'package:stackwallet/models/contact.dart';
|
||||
import 'package:stackwallet/models/isar/models/blockchain_data/transaction.dart';
|
||||
import 'package:stackwallet/models/isar/models/isar_models.dart';
|
||||
import 'package:stackwallet/pages/address_book_views/subviews/add_new_contact_address_view.dart';
|
||||
import 'package:stackwallet/pages_desktop_specific/address_book_view/subwidgets/desktop_address_card.dart';
|
||||
|
@ -12,6 +11,7 @@ import 'package:stackwallet/providers/global/address_book_service_provider.dart'
|
|||
import 'package:stackwallet/providers/global/wallets_provider.dart';
|
||||
import 'package:stackwallet/providers/ui/address_book_providers/address_entry_data_provider.dart';
|
||||
import 'package:stackwallet/services/coins/manager.dart';
|
||||
import 'package:stackwallet/themes/theme_providers.dart';
|
||||
import 'package:stackwallet/utilities/assets.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||
|
@ -120,7 +120,11 @@ class _DesktopContactDetailsState extends ConsumerState<DesktopContactDetails> {
|
|||
child: contact.id == "default"
|
||||
? Center(
|
||||
child: SvgPicture.asset(
|
||||
Assets.svg.stackIcon(context),
|
||||
ref.watch(
|
||||
themeProvider.select(
|
||||
(value) => value.assets.stackIcon,
|
||||
),
|
||||
),
|
||||
width: 32,
|
||||
),
|
||||
)
|
||||
|
|
|
@ -4,6 +4,7 @@ import 'package:flutter_svg/svg.dart';
|
|||
import 'package:stackwallet/pages_desktop_specific/desktop_menu.dart';
|
||||
import 'package:stackwallet/providers/desktop/current_desktop_menu_item.dart';
|
||||
import 'package:stackwallet/providers/global/notifications_provider.dart';
|
||||
import 'package:stackwallet/themes/theme_providers.dart';
|
||||
import 'package:stackwallet/utilities/assets.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||
|
@ -83,7 +84,11 @@ class DesktopNotificationsIcon extends ConsumerWidget {
|
|||
return SvgPicture.asset(
|
||||
ref.watch(notificationsProvider
|
||||
.select((value) => value.hasUnreadNotifications))
|
||||
? Assets.svg.bellNew(context)
|
||||
? ref.watch(
|
||||
themeProvider.select(
|
||||
(value) => value.assets.bellNew,
|
||||
),
|
||||
)
|
||||
: Assets.svg.bell,
|
||||
width: 20,
|
||||
height: 20,
|
||||
|
|
|
@ -4,7 +4,7 @@ import 'package:flutter_svg/flutter_svg.dart';
|
|||
import 'package:stackwallet/pages/wallets_view/sub_widgets/empty_wallets.dart';
|
||||
import 'package:stackwallet/pages_desktop_specific/my_stack_view/my_wallets.dart';
|
||||
import 'package:stackwallet/providers/global/wallets_provider.dart';
|
||||
import 'package:stackwallet/utilities/assets.dart';
|
||||
import 'package:stackwallet/themes/theme_providers.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/widgets/background.dart';
|
||||
import 'package:stackwallet/widgets/desktop/desktop_app_bar.dart';
|
||||
|
@ -40,11 +40,11 @@ class _MyStackViewState extends ConsumerState<MyStackView> {
|
|||
}
|
||||
}
|
||||
|
||||
class DesktopMyStackTitle extends StatelessWidget {
|
||||
class DesktopMyStackTitle extends ConsumerWidget {
|
||||
const DesktopMyStackTitle({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
return Row(
|
||||
children: [
|
||||
const SizedBox(
|
||||
|
@ -54,7 +54,11 @@ class DesktopMyStackTitle extends StatelessWidget {
|
|||
width: 32,
|
||||
height: 32,
|
||||
child: SvgPicture.asset(
|
||||
Assets.svg.stackIcon(context),
|
||||
ref.watch(
|
||||
themeProvider.select(
|
||||
(value) => value.assets.stackIcon,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(
|
||||
|
|
|
@ -8,7 +8,7 @@ import 'package:hive/hive.dart';
|
|||
import 'package:stackwallet/db/hive/db.dart';
|
||||
import 'package:stackwallet/notifications/show_flush_bar.dart';
|
||||
import 'package:stackwallet/pages/intro_view.dart';
|
||||
import 'package:stackwallet/utilities/assets.dart';
|
||||
import 'package:stackwallet/themes/theme_providers.dart';
|
||||
import 'package:stackwallet/utilities/logger.dart';
|
||||
import 'package:stackwallet/utilities/stack_file_system.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
|
@ -95,7 +95,11 @@ class _ForgotPasswordDesktopViewState
|
|||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
SvgPicture.asset(
|
||||
Assets.svg.stackIcon(context),
|
||||
ref.watch(
|
||||
themeProvider.select(
|
||||
(value) => value.assets.stackIcon,
|
||||
),
|
||||
),
|
||||
width: 100,
|
||||
),
|
||||
const SizedBox(
|
||||
|
|
|
@ -8,6 +8,7 @@ import 'package:stackwallet/pages_desktop_specific/desktop_home_view.dart';
|
|||
import 'package:stackwallet/pages_desktop_specific/password/forgot_password_desktop_view.dart';
|
||||
import 'package:stackwallet/providers/desktop/storage_crypto_handler_provider.dart';
|
||||
import 'package:stackwallet/providers/global/secure_store_provider.dart';
|
||||
import 'package:stackwallet/themes/theme_providers.dart';
|
||||
import 'package:stackwallet/utilities/assets.dart';
|
||||
import 'package:stackwallet/utilities/constants.dart';
|
||||
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart';
|
||||
|
@ -165,7 +166,11 @@ class _DesktopLoginViewState extends ConsumerState<DesktopLoginView> {
|
|||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
SvgPicture.asset(
|
||||
Assets.svg.stackIcon(context),
|
||||
ref.watch(
|
||||
themeProvider.select(
|
||||
(value) => value.assets.stackIcon,
|
||||
),
|
||||
),
|
||||
width: 100,
|
||||
),
|
||||
const SizedBox(
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:flutter_svg/svg.dart';
|
||||
import 'package:stackwallet/pages_desktop_specific/password/delete_password_warning_view.dart';
|
||||
import 'package:stackwallet/utilities/assets.dart';
|
||||
import 'package:stackwallet/themes/theme_providers.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
|
@ -10,7 +11,7 @@ import 'package:stackwallet/widgets/desktop/desktop_scaffold.dart';
|
|||
import 'package:stackwallet/widgets/desktop/primary_button.dart';
|
||||
import 'package:stackwallet/widgets/desktop/secondary_button.dart';
|
||||
|
||||
class ForgotPasswordDesktopView extends StatefulWidget {
|
||||
class ForgotPasswordDesktopView extends ConsumerStatefulWidget {
|
||||
const ForgotPasswordDesktopView({
|
||||
Key? key,
|
||||
}) : super(key: key);
|
||||
|
@ -18,11 +19,12 @@ class ForgotPasswordDesktopView extends StatefulWidget {
|
|||
static const String routeName = "/forgotPasswordDesktop";
|
||||
|
||||
@override
|
||||
State<ForgotPasswordDesktopView> createState() =>
|
||||
ConsumerState<ForgotPasswordDesktopView> createState() =>
|
||||
_ForgotPasswordDesktopViewState();
|
||||
}
|
||||
|
||||
class _ForgotPasswordDesktopViewState extends State<ForgotPasswordDesktopView> {
|
||||
class _ForgotPasswordDesktopViewState
|
||||
extends ConsumerState<ForgotPasswordDesktopView> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return DesktopScaffold(
|
||||
|
@ -46,7 +48,11 @@ class _ForgotPasswordDesktopViewState extends State<ForgotPasswordDesktopView> {
|
|||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
SvgPicture.asset(
|
||||
Assets.svg.stackIcon(context),
|
||||
ref.watch(
|
||||
themeProvider.select(
|
||||
(value) => value.assets.stackIcon,
|
||||
),
|
||||
),
|
||||
width: 100,
|
||||
),
|
||||
const SizedBox(
|
||||
|
|
|
@ -14,6 +14,8 @@ import 'package:stackwallet/widgets/conditional_parent.dart';
|
|||
import 'package:stackwallet/widgets/expandable.dart';
|
||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||
|
||||
import '../themes/theme_providers.dart';
|
||||
|
||||
class AddressBookCard extends ConsumerStatefulWidget {
|
||||
const AddressBookCard({
|
||||
Key? key,
|
||||
|
@ -91,7 +93,11 @@ class _AddressBookCardState extends ConsumerState<AddressBookCard> {
|
|||
child: contact.id == "default"
|
||||
? Center(
|
||||
child: SvgPicture.asset(
|
||||
Assets.svg.stackIcon(context),
|
||||
ref.watch(
|
||||
themeProvider.select(
|
||||
(value) => value.assets.stackIcon,
|
||||
),
|
||||
),
|
||||
width: 20,
|
||||
),
|
||||
)
|
||||
|
|
|
@ -1,17 +1,21 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
import 'package:stackwallet/utilities/assets.dart';
|
||||
import 'package:stackwallet/themes/theme_providers.dart';
|
||||
|
||||
class LivingStackIcon extends StatefulWidget {
|
||||
const LivingStackIcon({Key? key, this.onPressed,}) : super(key: key);
|
||||
class LivingStackIcon extends ConsumerStatefulWidget {
|
||||
const LivingStackIcon({
|
||||
Key? key,
|
||||
this.onPressed,
|
||||
}) : super(key: key);
|
||||
|
||||
final VoidCallback? onPressed;
|
||||
|
||||
@override
|
||||
State<LivingStackIcon> createState() => _LivingStackIconState();
|
||||
ConsumerState<LivingStackIcon> createState() => _LivingStackIconState();
|
||||
}
|
||||
|
||||
class _LivingStackIconState extends State<LivingStackIcon> {
|
||||
class _LivingStackIconState extends ConsumerState<LivingStackIcon> {
|
||||
bool _hovering = false;
|
||||
|
||||
late final VoidCallback? onPressed;
|
||||
|
@ -44,7 +48,11 @@ class _LivingStackIconState extends State<LivingStackIcon> {
|
|||
duration: const Duration(milliseconds: 200),
|
||||
scale: _hovering ? 1.2 : 1,
|
||||
child: SvgPicture.asset(
|
||||
Assets.svg.stackIcon(context),
|
||||
ref.watch(
|
||||
themeProvider.select(
|
||||
(value) => value.assets.stackIcon,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue