From 5b4a80321536b4f4f6a86c96dd666e0e15226d0a Mon Sep 17 00:00:00 2001 From: julian Date: Tue, 18 Jul 2023 11:51:57 -0600 Subject: [PATCH] add ordinals icon --- assets/svg/ordinal.svg | 12 ++++++++ lib/pages/wallet_view/wallet_view.dart | 3 +- lib/utilities/assets.dart | 1 + .../components/icons/ordinals_nav_icon.dart | 28 +++++++++++++++++++ pubspec.yaml | 1 + 5 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 assets/svg/ordinal.svg create mode 100644 lib/widgets/wallet_navigation_bar/components/icons/ordinals_nav_icon.dart diff --git a/assets/svg/ordinal.svg b/assets/svg/ordinal.svg new file mode 100644 index 000000000..7ac863a84 --- /dev/null +++ b/assets/svg/ordinal.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/lib/pages/wallet_view/wallet_view.dart b/lib/pages/wallet_view/wallet_view.dart index 278d43d35..3e51d25a9 100644 --- a/lib/pages/wallet_view/wallet_view.dart +++ b/lib/pages/wallet_view/wallet_view.dart @@ -73,6 +73,7 @@ import 'package:stackwallet/widgets/stack_dialog.dart'; import 'package:stackwallet/widgets/wallet_navigation_bar/components/icons/buy_nav_icon.dart'; import 'package:stackwallet/widgets/wallet_navigation_bar/components/icons/coin_control_nav_icon.dart'; import 'package:stackwallet/widgets/wallet_navigation_bar/components/icons/exchange_nav_icon.dart'; +import 'package:stackwallet/widgets/wallet_navigation_bar/components/icons/ordinals_nav_icon.dart'; import 'package:stackwallet/widgets/wallet_navigation_bar/components/icons/paynym_nav_icon.dart'; import 'package:stackwallet/widgets/wallet_navigation_bar/components/icons/receive_nav_icon.dart'; import 'package:stackwallet/widgets/wallet_navigation_bar/components/icons/send_nav_icon.dart'; @@ -1016,7 +1017,7 @@ class _WalletViewState extends ConsumerState { )) WalletNavigationBarItemData( label: "Ordinals", - icon: const CoinControlNavIcon(), + icon: const OrdinalsNavIcon(), onTap: () { Navigator.of(context).pushNamed( OrdinalsView.routeName, diff --git a/lib/utilities/assets.dart b/lib/utilities/assets.dart index bb3054325..2686c1463 100644 --- a/lib/utilities/assets.dart +++ b/lib/utilities/assets.dart @@ -206,6 +206,7 @@ class _SVG { String get list => "assets/svg/list-ul.svg"; String get unclaimedPaynym => "assets/svg/unclaimed.svg"; String get send => "assets/svg/send.svg"; + String get ordinal => "assets/svg/ordinal.svg"; String get trocadorRatingA => "assets/svg/trocador_rating_a.svg"; String get trocadorRatingB => "assets/svg/trocador_rating_b.svg"; diff --git a/lib/widgets/wallet_navigation_bar/components/icons/ordinals_nav_icon.dart b/lib/widgets/wallet_navigation_bar/components/icons/ordinals_nav_icon.dart new file mode 100644 index 000000000..4c23bf20a --- /dev/null +++ b/lib/widgets/wallet_navigation_bar/components/icons/ordinals_nav_icon.dart @@ -0,0 +1,28 @@ +/* + * This file is part of Stack Wallet. + * + * Copyright (c) 2023 Cypher Stack + * All Rights Reserved. + * The code is distributed under GPLv3 license, see LICENSE file for details. + * Generated by Cypher Stack on 2023-05-26 + * + */ + +import 'package:flutter/material.dart'; +import 'package:flutter_svg/flutter_svg.dart'; +import 'package:stackwallet/themes/stack_colors.dart'; +import 'package:stackwallet/utilities/assets.dart'; + +class OrdinalsNavIcon extends StatelessWidget { + const OrdinalsNavIcon({Key? key}) : super(key: key); + + @override + Widget build(BuildContext context) { + return SvgPicture.asset( + Assets.svg.ordinal, + height: 20, + width: 20, + color: Theme.of(context).extension()!.bottomNavIconIcon, + ); + } +} diff --git a/pubspec.yaml b/pubspec.yaml index ca8289bc8..e68cae35f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -336,6 +336,7 @@ flutter: - assets/svg/trocador_rating_c.svg - assets/svg/trocador_rating_d.svg - assets/svg/send.svg + - assets/svg/ordinal.svg # coin control icons - assets/svg/coin_control/