diff --git a/wallet/assets/images/icons/eye_bold.svg b/wallet/assets/images/icons/eye_bold.svg
new file mode 100644
index 0000000000..530fa1dabd
--- /dev/null
+++ b/wallet/assets/images/icons/eye_bold.svg
@@ -0,0 +1,17 @@
+
diff --git a/wallet/assets/images/icons/like_bold.png b/wallet/assets/images/icons/like_bold.png
new file mode 100644
index 0000000000..77d0e538ec
Binary files /dev/null and b/wallet/assets/images/icons/like_bold.png differ
diff --git a/wallet/assets/images/svg/curved_corner_red_bg.svg b/wallet/assets/images/svg/curved_corner_red_bg.svg
deleted file mode 100644
index 86d0b6040a..0000000000
--- a/wallet/assets/images/svg/curved_corner_red_bg.svg
+++ /dev/null
@@ -1,13 +0,0 @@
-
\ No newline at end of file
diff --git a/wallet/i18n/de.json b/wallet/i18n/de.json
index 8005030d77..9bb7c7359a 100644
--- a/wallet/i18n/de.json
+++ b/wallet/i18n/de.json
@@ -370,6 +370,9 @@
"maintenance_mode_message": "We ondervinden technische problemen en hebben tijdelijk de onderhoudsmodus gestart voor het oplossen van problemen. Maak je geen zorgen, je collectie is veilig. U kunt echter geen on-chain-transacties starten totdat we het probleem hebben opgelost en de normale functionaliteit hebben hersteld.",
"maintenance_mode_header": "onderhoudsstand",
"invalid_mnemonic": "Ungültige mnemonic",
+ "claim_now": "Beanspruche jetzt",
+ "remaining_and_total_editions": "{remaining} Von {total}",
+ "remaining": "verblieben",
"edit_profile": "Profil bearbeiten",
"cash_out": "Auszahlen",
"bio_text": "Produktdesigner bei Pylons.",
diff --git a/wallet/i18n/en.json b/wallet/i18n/en.json
index 04a5d31d45..1ce79a723f 100644
--- a/wallet/i18n/en.json
+++ b/wallet/i18n/en.json
@@ -372,6 +372,9 @@
"maintenance_mode_message": "We are experiencing technical issues and have temporarily initiated maintenance mode for troubleshooting. Don't worry, your collection is safe. However, you cannot initiate on-chain transactions until we've resolved the problem and restored normal functionality.",
"maintenance_mode_header": "Maintenance Mode",
"invalid_mnemonic": "Invalid mnemonic",
+ "claim_now": "Claim Now",
+ "remaining_and_total_editions": "{remaining} of {total}",
+ "remaining":"remaining",
"edit_profile": "Edit Profile",
"cash_out": "Cash Out",
"bio_text": "Product designer at Pylons.",
diff --git a/wallet/i18n/es.json b/wallet/i18n/es.json
index b232a43200..acfa1d5019 100644
--- a/wallet/i18n/es.json
+++ b/wallet/i18n/es.json
@@ -370,6 +370,9 @@
"maintenance_mode_message": "Estamos experimentando problemas técnicos y hemos iniciado temporalmente el modo de mantenimiento para solucionar problemas. No te preocupes, tu colección está segura. Sin embargo, no puede iniciar transacciones en cadena hasta que hayamos resuelto el problema y restablecido la funcionalidad normal.",
"maintenance_mode_header": "Modo de mantenimiento",
"invalid_mnemonic": "Mnemonic inválido",
+ "claim_now": "Reclama ahora",
+ "remaining_and_total_editions": "{remaining} De {total}",
+ "remaining": "restante",
"edit_profile": "Editar perfil",
"cash_out": "Retiro",
"bio_text": "Diseñadora de productos en Pylons.",
diff --git a/wallet/i18n/id.json b/wallet/i18n/id.json
index 7566681578..62c6602bbc 100644
--- a/wallet/i18n/id.json
+++ b/wallet/i18n/id.json
@@ -370,6 +370,9 @@
"maintenance_mode_message": "Kami mengalami masalah teknis dan untuk sementara memulai mode pemeliharaan untuk pemecahan masalah. Jangan khawatir, koleksi Anda aman. Namun, Anda tidak dapat memulai transaksi on-chain sampai kami menyelesaikan masalah dan memulihkan fungsionalitas normal.",
"maintenance_mode_header": "Mode Pemeliharaan",
"invalid_mnemonic": "Mnemonic tidak valid",
+ "claim_now": "Klaim Sekarang",
+ "remaining_and_total_editions": "{remaining} Dari {total}",
+ "remaining": "tersisa",
"edit_profile": "Sunting profil",
"cash_out": "Kas keluar",
"bio_text": "Desainer produk di Pylons.",
diff --git a/wallet/i18n/ja.json b/wallet/i18n/ja.json
index 2bf7243875..cc7caf54cd 100644
--- a/wallet/i18n/ja.json
+++ b/wallet/i18n/ja.json
@@ -370,6 +370,9 @@
"maintenance_mode_message": "技術的な問題が発生しており、トラブルシューティングのために一時的にメンテナンス モードを開始しました。心配はいりません。あなたのコレクションは安全です。ただし、問題が解決され、通常の機能が回復するまで、オンチェーン トランザクションを開始することはできません。",
"maintenance_mode_header": "メンテナンスモード",
"invalid_mnemonic": "無効 mnemonic",
+ "claim_now": "今すぐ請求",
+ "remaining_and_total_editions": "{remaining} の {total}",
+ "remaining": "残り",
"edit_profile": "プロファイル編集",
"cash_out": "キャッシュアウト",
"bio_text": "Pylonsのプロダクトデザイナー。",
diff --git a/wallet/i18n/ko.json b/wallet/i18n/ko.json
index 859be10bb6..4c4947cb33 100644
--- a/wallet/i18n/ko.json
+++ b/wallet/i18n/ko.json
@@ -369,6 +369,9 @@
"maintenance_mode_message": "기술적인 문제가 발생했으며 문제 해결을 위해 일시적으로 유지 관리 모드를 시작했습니다. 걱정하지 마세요. 컬렉션은 안전합니다. 그러나 문제를 해결하고 정상적인 기능을 복원할 때까지 온체인 트랜잭션을 시작할 수 없습니다.",
"maintenance_mode_header": "유지 관리 모드",
"invalid_mnemonic": "유효하지 않은 mnemonic",
+ "claim_now": "지금 청구하세요",
+ "remaining_and_total_editions": "{remaining} 의 {total}",
+ "remaining": "남은",
"edit_profile": "프로필 편집",
"cash_out": "현금 인출",
"bio_text": "Pylons의 제품 디자이너.",
diff --git a/wallet/i18n/ru.json b/wallet/i18n/ru.json
index a3e53f653a..4e9d8b435b 100644
--- a/wallet/i18n/ru.json
+++ b/wallet/i18n/ru.json
@@ -370,6 +370,9 @@
"maintenance_mode_message": "У нас возникли технические проблемы, и мы временно запустили режим обслуживания для устранения неполадок. Не волнуйтесь, ваша коллекция в безопасности. Однако вы не можете инициировать транзакции в сети, пока мы не решим проблему и не восстановим нормальную работу.",
"maintenance_mode_header": "Режим технического обслуживания",
"invalid_mnemonic": "Инвалид mnemonic",
+ "claim_now": "Заявить сейчас",
+ "remaining_and_total_editions": "{remaining} Из {total}",
+ "remaining": "осталось",
"edit_profile": "Редактировать профиль",
"cash_out": "Обналичить",
"bio_text": "Дизайнер продукта в Pylons.",
diff --git a/wallet/i18n/vi.json b/wallet/i18n/vi.json
index 42cd281066..a355cda12b 100644
--- a/wallet/i18n/vi.json
+++ b/wallet/i18n/vi.json
@@ -370,6 +370,9 @@
"maintenance_mode_message": "Chúng tôi đang gặp sự cố kỹ thuật và đã tạm thời bắt đầu chế độ bảo trì để khắc phục sự cố. Đừng lo lắng, bộ sưu tập của bạn vẫn an toàn. Tuy nhiên, bạn không thể bắt đầu các giao dịch trên chuỗi cho đến khi chúng tôi giải quyết xong sự cố và khôi phục chức năng bình thường.",
"maintenance_mode_header": "Chế độ bảo trì",
"invalid_mnemonic": "Không hợp lệ menmonic",
+ "claim_now": "yêu cầu ngay bây giờ",
+ "remaining_and_total_editions": "{remaining} Của {total}",
+ "remaining": "còn lại",
"edit_profile": "Chỉnh sửa hồ sơ",
"cash_out": "Rút tiền",
"bio_text": "Nhà thiết kế sản phẩm tại Pylons.",
diff --git a/wallet/lib/generated/locale_keys.g.dart b/wallet/lib/generated/locale_keys.g.dart
index 09b5bceef0..27438af369 100644
--- a/wallet/lib/generated/locale_keys.g.dart
+++ b/wallet/lib/generated/locale_keys.g.dart
@@ -373,6 +373,9 @@ abstract class LocaleKeys {
static const maintenance_mode_message = 'maintenance_mode_message';
static const maintenance_mode_header = 'maintenance_mode_header';
static const invalid_mnemonic = 'invalid_mnemonic';
+ static const claim_now = 'claim_now';
+ static const remaining_and_total_editions = 'remaining_and_total_editions';
+ static const remaining = 'remaining';
static const edit_profile = 'edit_profile';
static const cash_out = 'cash_out';
static const bio_text = 'bio_text';
diff --git a/wallet/lib/pages/detailed_asset_view/widgets/tab_fields.dart b/wallet/lib/pages/detailed_asset_view/widgets/tab_fields.dart
index 1feca895ca..aa31c7ddfe 100644
--- a/wallet/lib/pages/detailed_asset_view/widgets/tab_fields.dart
+++ b/wallet/lib/pages/detailed_asset_view/widgets/tab_fields.dart
@@ -64,18 +64,20 @@ class _TabFieldState extends State {
return {
LocaleKeys.recipe_id.tr(): widget.nft.recipeID,
LocaleKeys.resolution.tr(): "${widget.nft.width}x${widget.nft.height} ${widget.nft.fileExtension.toUpperCase()}",
- LocaleKeys.ipfs_cid.tr(): widget.nft.cid
+ LocaleKeys.ipfs_cid.tr(): widget.nft.cid,
};
case NftType.TYPE_ITEM:
- return {LocaleKeys.recipe_id.tr(): widget.nft.recipeID};
+ return {
+ LocaleKeys.recipe_id.tr(): widget.nft.recipeID,
+ };
case NftType.TYPE_TRADE:
break;
}
return {
LocaleKeys.recipe_id.tr(): widget.nft.recipeID,
- LocaleKeys.resolution.tr(): "${widget.nft.width}x${widget.nft.height} ${widget.nft.fileExtension}",
- LocaleKeys.ipfs_cid.tr(): widget.nft.cid
+ LocaleKeys.resolution.tr(): "${widget.nft.width}x${widget.nft.height} ${widget.nft.fileExtension.toUpperCase()}",
+ LocaleKeys.ipfs_cid.tr(): widget.nft.cid,
};
}
@@ -85,14 +87,27 @@ class _TabFieldState extends State {
final nftDetail = getNFTDetailsMap();
- final listOwnership = ownership.entries.map((element) => _tabDetails(field: element.key, value: element.value, customColor: element.key == LocaleKeys.owner.tr() ? Colors.red : null)).toList();
+ final listOwnership = ownership.entries
+ .map(
+ (element) => _tabDetails(
+ field: element.key,
+ value: element.value,
+ customColor: element.key == LocaleKeys.owner.tr() ? AppColors.kRed : null,
+ ),
+ )
+ .toList();
final listDetails = nftDetail.entries
.map(
(element) => _tabDetails(
- field: element.key,
- value: element.value,
- customWidget: (element.key == LocaleKeys.recipe_id.tr() || element.key == LocaleKeys.ipfs_cid.tr()) && element.value.isNotEmpty ? _tabDetailsWithIcon(value: element.value) : null),
+ field: element.key,
+ value: element.value,
+ customWidget: (element.key == LocaleKeys.recipe_id.tr() || element.key == LocaleKeys.ipfs_cid.tr()) && element.value.isNotEmpty
+ ? _tabDetailsWithIcon(
+ value: element.value,
+ )
+ : null,
+ ),
)
.toList();
@@ -111,7 +126,10 @@ class _TabFieldState extends State {
child: AutoSizeText(
widget.name,
maxLines: 1,
- style: const TextStyle(color: Colors.white),
+ style: const TextStyle(
+ color: AppColors.kWhite,
+ fontWeight: FontWeight.bold,
+ ),
),
),
SizedBox(
@@ -156,10 +174,20 @@ class _TabFieldState extends State {
children: [
Container(
width: 100.w,
- height: 10.h,
- decoration: const BoxDecoration(border: Border(bottom: BorderSide(color: Colors.white, width: 2))),
+ height: 6.h,
+ decoration: const BoxDecoration(
+ border: Border(
+ bottom: BorderSide(
+ color: AppColors.kWhite,
+ width: 2,
+ ),
+ ),
+ ),
+ ),
+ CustomPaint(
+ size: Size(6.w, 6.h),
+ painter: DiagonalLinePainter(),
),
- CustomPaint(size: Size(10.w, 10.h), painter: DiagonalLinePainter()),
],
),
SizedBox(
@@ -278,9 +306,9 @@ class DiagonalLinePainter extends CustomPainter {
@override
void paint(Canvas canvas, Size size) {
final point1 = Offset(-0.5, size.height - 1);
- final point2 = Offset(size.width, 0);
+ final point2 = Offset(size.width, -3);
final paint = Paint()
- ..color = Colors.white
+ ..color = AppColors.kWhite
..strokeWidth = 2;
canvas.drawLine(point1, point2, paint);
}
diff --git a/wallet/lib/pages/purchase_item/purchase_item_screen.dart b/wallet/lib/pages/purchase_item/purchase_item_screen.dart
index bcd7c65c6c..065d1e0cfd 100644
--- a/wallet/lib/pages/purchase_item/purchase_item_screen.dart
+++ b/wallet/lib/pages/purchase_item/purchase_item_screen.dart
@@ -28,6 +28,7 @@ import 'package:pylons_wallet/pages/purchase_item/widgets/purchase_video_player_
import 'package:pylons_wallet/pages/purchase_item/widgets/purchase_video_progress_widget.dart';
import 'package:pylons_wallet/pages/purchase_item/widgets/trade_receipt_dialog.dart';
import 'package:pylons_wallet/pages/purchase_item/widgets/transaction_complete_dialog.dart';
+import 'package:pylons_wallet/pages/settings/screens/submit_feedback.dart';
import 'package:pylons_wallet/utils/clipper_utils.dart';
import 'package:pylons_wallet/utils/constants.dart';
import 'package:pylons_wallet/utils/dependency_injection/dependency_injection.dart';
@@ -157,7 +158,12 @@ class _PurchaseItemContentState extends State {
Visibility(
visible: !viewModel.isViewingFullNft,
child: Padding(
- padding: EdgeInsets.only(left: 8.w, right: 8.w, bottom: 8.h, top: MediaQuery.of(context).viewPadding.top.h),
+ padding: EdgeInsets.only(
+ left: 8.w,
+ right: 8.w,
+ bottom: 8.h,
+ top: MediaQuery.of(context).viewPadding.top.h,
+ ),
child: SizedBox(
height: 100.h,
width: double.infinity,
@@ -172,7 +178,16 @@ class _PurchaseItemContentState extends State {
height: 25.h,
),
),
- trailing: const SizedBox(),
+ trailing: GestureDetector(
+ onTap: () {
+ final SubmitFeedback submitFeedbackDialog = SubmitFeedback(context: context);
+ submitFeedbackDialog.show();
+ },
+ child: SvgPicture.asset(
+ SVGUtil.OWNER_REPORT,
+ height: 25.h,
+ ),
+ ),
),
),
),
@@ -307,7 +322,7 @@ class _OwnerBottomDrawerState extends State {
Column(
children: [
SvgPicture.asset(
- SVGUtil.OWNER_VIEWS,
+ SVGUtil.OWNER_VIEWS_BOLD,
width: 20.w,
height: 15.h,
),
@@ -437,10 +452,10 @@ class _OwnerBottomDrawerState extends State {
Widget getLikeIcon({required bool likedByMe}) {
return SizedBox(
- height: 15.r,
- width: 15.r,
+ height: 20.r,
+ width: 20.r,
child: Image.asset(
- 'assets/images/icons/${likedByMe ? 'like_full' : 'like'}.png',
+ 'assets/images/icons/${likedByMe ? 'like_full' : 'like_bold'}.png',
fit: BoxFit.fill,
color: likedByMe ? AppColors.kDarkRed : AppColors.kWhite,
),
@@ -569,7 +584,7 @@ class _OwnerBottomDrawerState extends State {
child: Column(
children: [
SvgPicture.asset(
- SVGUtil.OWNER_VIEWS,
+ SVGUtil.OWNER_VIEWS_BOLD,
width: 15.w,
height: 15.h,
),
@@ -671,15 +686,17 @@ class _OwnerBottomDrawerState extends State {
clipper: RightTriangleClipper(orientation: enums.Orientation.Orientation_SW),
child: Container(
color: AppColors.kDarkRed,
- height: 50.r,
- width: 50.r,
+
+ height: 55.r,
+ width: 55.r,
child: Center(
child: IconButton(
key: const Key(kCloseBottomSheetKey),
alignment: Alignment.topRight,
padding: EdgeInsets.only(
- bottom: 12.h,
- left: 12.w,
+
+ bottom: 15.h,
+ left: isTablet ? 16.w : 20.w,
),
icon: const Icon(Icons.keyboard_arrow_down_outlined),
onPressed: () {
@@ -692,19 +709,6 @@ class _OwnerBottomDrawerState extends State {
),
),
),
- Positioned.fill(
- child: Align(
- alignment: Alignment.bottomLeft,
- child: ClipPath(
- clipper: RightTriangleClipper(orientation: enums.Orientation.Orientation_NE),
- child: Container(
- color: AppColors.kDarkRed,
- height: isTablet ? 25.0.r : 30.r,
- width: isTablet ? 25.0.r : 30.r,
- ),
- ),
- ),
- ),
],
);
}
diff --git a/wallet/lib/pages/purchase_item/widgets/buy_nft_button.dart b/wallet/lib/pages/purchase_item/widgets/buy_nft_button.dart
index 0c61fdda5d..05b710a9c1 100644
--- a/wallet/lib/pages/purchase_item/widgets/buy_nft_button.dart
+++ b/wallet/lib/pages/purchase_item/widgets/buy_nft_button.dart
@@ -2,15 +2,12 @@ import 'package:auto_size_text/auto_size_text.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
-import 'package:flutter_svg/flutter_svg.dart';
import 'package:provider/provider.dart';
import 'package:pylons_wallet/main_prod.dart';
import 'package:pylons_wallet/model/nft.dart';
import 'package:pylons_wallet/pages/home/currency_screen/model/ibc_coins.dart';
import 'package:pylons_wallet/pages/purchase_item/purchase_item_view_model.dart';
import 'package:pylons_wallet/utils/constants.dart';
-import 'package:pylons_wallet/utils/svg_util.dart';
-
import '../../../generated/locale_keys.g.dart';
import '../clipper/top_left_bottom_right_clipper.dart';
@@ -21,44 +18,8 @@ class BuyNFTButton extends StatelessWidget {
const BuyNFTButton({Key? key, required this.onTapped, required this.nft}) : super(key: key);
Widget getButtonContent(NFT nft, PurchaseItemViewModel viewModel) {
- final double btnHeight = 35.h;
+ final double btnHeight = 37.h;
final double btnWidth = isTablet ? 160.w : 200.w;
- if (double.parse(nft.price) == 0) {
- return Container(
- height: 60.h,
- color: AppColors.kDarkRed.withOpacity(0.8),
- child: Padding(
- padding: EdgeInsets.symmetric(horizontal: 16.w),
- child: Column(
- mainAxisAlignment: MainAxisAlignment.center,
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- AutoSizeText(
- LocaleKeys.claim_free_nft.tr(),
- maxLines: 1,
- style: TextStyle(color: AppColors.kWhite, fontSize: 16.sp, fontFamily: kUniversalFontFamily),
- ),
- Row(
- mainAxisAlignment: MainAxisAlignment.spaceBetween,
- children: [
- AutoSizeText(
- LocaleKeys.before_too_late.tr(),
- maxLines: 1,
- style: TextStyle(color: AppColors.kWhite, fontSize: 12.sp, fontFamily: kUniversalFontFamily),
- ),
- SizedBox(width: 8.w),
- SizedBox(
- height: 20.h,
- width: 20.h,
- child: nft.ibcCoins.getAssets(),
- ),
- ],
- ),
- ],
- ),
- ),
- );
- }
return Container(
height: btnHeight,
width: btnWidth,
@@ -68,70 +29,107 @@ class BuyNFTButton extends StatelessWidget {
child: Row(
children: [
Expanded(
- flex: 4,
- child: Stack(
- children: [
- Align(
- alignment: Alignment.centerRight,
- child: SvgPicture.asset(
- SVGUtil.CURVED_CORNER_RED_BG,
- height: btnHeight,
- fit: BoxFit.fill,
- ),
- ),
- Center(
- child: AutoSizeText(
- LocaleKeys.buy_now.tr(),
- textAlign: TextAlign.center,
- style: TextStyle(
- color: Colors.white,
- fontSize: 12.sp,
- fontFamily: kUniversalFontFamily,
- fontWeight: FontWeight.w700,
- ),
- maxLines: 1,
+ flex: getFlexForMessageContainer(),
+ child: DecoratedBox(
+ decoration: BoxDecoration(
+ boxShadow: [
+ BoxShadow(
+ color: AppColors.kBlack.withOpacity(0.35),
+ blurRadius: 20,
+ spreadRadius: 2,
),
+ ],
+ ),
+ child: ClipPath(
+ clipper: TopLeftBottomRightClipper(),
+ child: ColoredBox(
+ color: AppColors.kDarkRedColor,
+ child: getMessageContent(),
),
- ],
+ ),
),
),
- Expanded(
- flex: 3,
- child: Column(
- mainAxisSize: MainAxisSize.min,
- children: [
- RichText(
- text: TextSpan(
- text: "\$${nft.ibcCoins.getCoinValueBasedOnDollar(nft.price)}",
+ getPriceAndAvailability(nft),
+ ],
+ ),
+ );
+ }
+
+ int getFlexForMessageContainer() {
+ if (double.parse(nft.price) == 0) {
+ return 5;
+ }
+ return 4;
+ }
+
+ Expanded getPriceAndAvailability(NFT nft) {
+ if (double.parse(nft.price) != 0) {
+ return Expanded(
+ flex: 3,
+ child: Column(
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ RichText(
+ text: TextSpan(
+ text: "\$${nft.ibcCoins.getCoinValueBasedOnDollar(nft.price)}",
+ style: TextStyle(
+ color: AppColors.kWhite,
+ fontSize: 10.sp,
+ fontFamily: kUniversalFontFamily,
+ fontWeight: FontWeight.w700,
+ ),
+ children: [
+ TextSpan(
+ text: " ${LocaleKeys.ea.tr()}.",
style: TextStyle(
color: AppColors.kWhite,
fontSize: 10.sp,
fontFamily: kUniversalFontFamily,
fontWeight: FontWeight.w700,
),
- children: [
- TextSpan(
- text: " ${LocaleKeys.ea.tr()}.",
- style: TextStyle(
- color: AppColors.kWhite,
- fontSize: 10.sp,
- fontFamily: kUniversalFontFamily,
- fontWeight: FontWeight.w700,
- ),
- )
- ],
- ),
- ),
- Text(
- "${nft.quantity - nft.amountMinted} ${LocaleKeys.available.tr()}",
- style: TextStyle(
- color: AppColors.kGreyLight,
- fontSize: 9.sp,
- fontWeight: FontWeight.normal,
- fontFamily: kUniversalFontFamily,
- ),
- ),
- ],
+ )
+ ],
+ ),
+ ),
+ Text(
+ "${nft.quantity - nft.amountMinted} ${LocaleKeys.available.tr()}",
+ style: TextStyle(
+ color: AppColors.kGreyLight,
+ fontSize: 9.sp,
+ fontWeight: FontWeight.normal,
+ fontFamily: kUniversalFontFamily,
+ ),
+ ),
+ ],
+ ),
+ );
+ }
+ return Expanded(
+ flex: 3,
+ child: Column(
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ Text(
+ LocaleKeys.remaining_and_total_editions.tr(
+ namedArgs: {
+ kRemaining: '${nft.quantity - nft.amountMinted}',
+ kTotal: '${nft.quantity}',
+ },
+ ),
+ style: TextStyle(
+ color: AppColors.kGreyLight,
+ fontSize: 9.sp,
+ fontWeight: FontWeight.normal,
+ fontFamily: kUniversalFontFamily,
+ ),
+ ),
+ Text(
+ LocaleKeys.remaining.tr(),
+ style: TextStyle(
+ color: AppColors.kGreyLight,
+ fontSize: 9.sp,
+ fontWeight: FontWeight.normal,
+ fontFamily: kUniversalFontFamily,
),
),
],
@@ -139,6 +137,37 @@ class BuyNFTButton extends StatelessWidget {
);
}
+ Center getMessageContent() {
+ if (double.parse(nft.price) != 0) {
+ return Center(
+ child: AutoSizeText(
+ LocaleKeys.buy_now.tr(),
+ textAlign: TextAlign.center,
+ style: TextStyle(
+ color: AppColors.kWhite,
+ fontSize: 12.sp,
+ fontFamily: kUniversalFontFamily,
+ fontWeight: FontWeight.w700,
+ ),
+ maxLines: 1,
+ ),
+ );
+ }
+ return Center(
+ child: AutoSizeText(
+ LocaleKeys.claim_now.tr(),
+ textAlign: TextAlign.center,
+ style: TextStyle(
+ color: AppColors.kWhite,
+ fontSize: 12.sp,
+ fontFamily: kUniversalFontFamily,
+ fontWeight: FontWeight.w700,
+ ),
+ maxLines: 1,
+ ),
+ );
+ }
+
@override
Widget build(BuildContext context) {
final viewModel = context.read();
diff --git a/wallet/lib/utils/constants.dart b/wallet/lib/utils/constants.dart
index d15302c45f..be4d106cd0 100644
--- a/wallet/lib/utils/constants.dart
+++ b/wallet/lib/utils/constants.dart
@@ -25,6 +25,7 @@ class AppColors {
static Color kYellow = const Color(0xffFED564);
static Color kDarkPurple = const Color(0xff0A004A);
static Color kDarkRed = const Color(0xffEF4421);
+ static Color kRed = Colors.red;
static Color kDarkGreen = const Color(0xFF3A8977);
static Color kWhite01 = const Color(0xFFFBFBFB);
static const Color kButtonColor = Color(0xFFFFFFFF);
@@ -49,6 +50,7 @@ class AppColors {
static Color kTradeReceiptTextColor = const Color(0xff8F8FCE);
static Color kDarkPurpleColor = const Color(0xff0A004A);
static Color kHashtagColor = const Color(0xFFB6B6E8);
+ static Color kDarkRedColor = const Color(0xFFAF381F);
static Color kCheckboxActiveColor = const Color(0xFFCBC8F3);
static Color kUserInputTextColor = const Color(0xff8D8C8C);
static Color kSettingsUserNameColor = kBlue;
@@ -478,4 +480,6 @@ const String drawerKey = "drawer_key";
const bool shouldShowAcceptPolicyScreen = true;
+const String kRemaining = 'remaining';
+const kTotal = 'total';
const kFileExtension = "file_extension";
diff --git a/wallet/lib/utils/svg_util.dart b/wallet/lib/utils/svg_util.dart
index e06fdc9b3e..c85dd60720 100644
--- a/wallet/lib/utils/svg_util.dart
+++ b/wallet/lib/utils/svg_util.dart
@@ -42,6 +42,7 @@ class SVGUtil {
static String OWNER_VERIFIED_ICON = 'assets/images/icons/verified.svg';
static String OWNER_SHARE = 'assets/images/icons/share.svg';
static String OWNER_VIEWS = 'assets/images/icons/views.svg';
+ static String OWNER_VIEWS_BOLD = 'assets/images/icons/eye_bold.svg';
static String DEV_NET = "assets/images/icons/dev_net.svg";
static String PYLONS_CURRENCY = "assets/images/icons/pylons_engagement_token.svg";
static String QR_ICON = 'assets/images/icons/qr.svg';
@@ -104,5 +105,4 @@ class SVGUtil {
static const kSvgNftFormatAudio = 'assets/images/svg/nft_format_audio.svg';
static const kSvgNftFormatPDF = 'assets/images/svg/nft_format_pdf.svg';
static String BOTTOM_RIGHT_CURVED_GREY_BG = "assets/images/svg/bottom_right_curved_grey_bg.svg";
- static String CURVED_CORNER_RED_BG = "assets/images/svg/curved_corner_red_bg.svg";
}
diff --git a/wallet/test/unit_testing/pages/purchase_item/purchase_item_view_model_test.mocks.dart b/wallet/test/unit_testing/pages/purchase_item/purchase_item_view_model_test.mocks.dart
index ecc29ed4f1..612a49a4d6 100644
--- a/wallet/test/unit_testing/pages/purchase_item/purchase_item_view_model_test.mocks.dart
+++ b/wallet/test/unit_testing/pages/purchase_item/purchase_item_view_model_test.mocks.dart
@@ -7,37 +7,48 @@ import 'dart:async' as _i8;
import 'package:dartz/dartz.dart' as _i2;
import 'package:fixnum/fixnum.dart' as _i11;
-import 'package:in_app_purchase/in_app_purchase.dart' as _i27;
-import 'package:internet_connection_checker/internet_connection_checker.dart' as _i26;
-import 'package:local_auth/local_auth.dart' as _i22;
+import 'package:in_app_purchase/in_app_purchase.dart' as _i28;
+import 'package:internet_connection_checker/internet_connection_checker.dart'
+ as _i27;
+import 'package:local_auth/local_auth.dart' as _i23;
import 'package:mobx/mobx.dart' as _i5;
import 'package:mockito/mockito.dart' as _i1;
import 'package:pylons_wallet/ipc/models/sdk_ipc_response.dart' as _i3;
-import 'package:pylons_wallet/model/balance.dart' as _i14;
-import 'package:pylons_wallet/model/execution_list_by_recipe_response.dart' as _i15;
-import 'package:pylons_wallet/model/export.dart' as _i16;
-import 'package:pylons_wallet/model/nft.dart' as _i29;
-import 'package:pylons_wallet/model/nft_ownership_history.dart' as _i23;
-import 'package:pylons_wallet/model/notification_message.dart' as _i28;
-import 'package:pylons_wallet/model/pick_image_model.dart' as _i21;
-import 'package:pylons_wallet/model/stripe_get_login_based_address.dart' as _i19;
-import 'package:pylons_wallet/model/stripe_loginlink_request.dart' as _i18;
-import 'package:pylons_wallet/model/stripe_loginlink_response.dart' as _i17;
-import 'package:pylons_wallet/model/transaction.dart' as _i24;
-import 'package:pylons_wallet/model/transaction_failure_model.dart' as _i32;
-import 'package:pylons_wallet/model/wallet_creation_model.dart' as _i31;
-import 'package:pylons_wallet/modules/cosmos.tx.v1beta1/module/client/cosmos/base/abci/v1beta1/abci.pb.dart' as _i4;
-import 'package:pylons_wallet/modules/Pylonstech.pylons.pylons/module/export.dart' as _i10;
-import 'package:pylons_wallet/pages/home/currency_screen/model/ibc_coins.dart' as _i33;
-import 'package:pylons_wallet/pages/home/currency_screen/model/ibc_trace_model.dart' as _i20;
-import 'package:pylons_wallet/services/data_stores/remote_data_store.dart' as _i12;
+import 'package:pylons_wallet/model/balance.dart' as _i15;
+import 'package:pylons_wallet/model/execution_list_by_recipe_response.dart'
+ as _i16;
+import 'package:pylons_wallet/model/export.dart' as _i17;
+import 'package:pylons_wallet/model/nft.dart' as _i30;
+import 'package:pylons_wallet/model/nft_ownership_history.dart' as _i24;
+import 'package:pylons_wallet/model/notification_message.dart' as _i29;
+import 'package:pylons_wallet/model/pick_image_model.dart' as _i22;
+import 'package:pylons_wallet/model/stripe_get_login_based_address.dart'
+ as _i20;
+import 'package:pylons_wallet/model/stripe_loginlink_request.dart' as _i19;
+import 'package:pylons_wallet/model/stripe_loginlink_response.dart' as _i18;
+import 'package:pylons_wallet/model/transaction.dart' as _i25;
+import 'package:pylons_wallet/model/transaction_failure_model.dart' as _i33;
+import 'package:pylons_wallet/model/wallet_creation_model.dart' as _i32;
+import 'package:pylons_wallet/modules/cosmos.tx.v1beta1/module/client/cosmos/base/abci/v1beta1/abci.pb.dart'
+ as _i4;
+import 'package:pylons_wallet/modules/cosmos.tx.v1beta1/module/export.dart'
+ as _i14;
+import 'package:pylons_wallet/modules/Pylonstech.pylons.pylons/module/export.dart'
+ as _i10;
+import 'package:pylons_wallet/pages/home/currency_screen/model/ibc_coins.dart'
+ as _i34;
+import 'package:pylons_wallet/pages/home/currency_screen/model/ibc_trace_model.dart'
+ as _i21;
+import 'package:pylons_wallet/services/data_stores/remote_data_store.dart'
+ as _i12;
import 'package:pylons_wallet/services/repository/repository.dart' as _i13;
-import 'package:pylons_wallet/stores/models/transaction_response.dart' as _i30;
+import 'package:pylons_wallet/stores/models/transaction_response.dart' as _i31;
import 'package:pylons_wallet/stores/wallet_store.dart' as _i7;
-import 'package:pylons_wallet/utils/backup/common/backup_model.dart' as _i25;
-import 'package:pylons_wallet/utils/enums.dart' as _i34;
+import 'package:pylons_wallet/utils/backup/common/backup_model.dart' as _i26;
+import 'package:pylons_wallet/utils/enums.dart' as _i35;
import 'package:pylons_wallet/utils/failure/failure.dart' as _i9;
-import 'package:transaction_signing_gateway/transaction_signing_gateway.dart' as _i6;
+import 'package:transaction_signing_gateway/transaction_signing_gateway.dart'
+ as _i6;
// ignore_for_file: type=lint
// ignore_for_file: avoid_redundant_argument_values
@@ -60,7 +71,8 @@ class _FakeEither_0 extends _i1.SmartFake implements _i2.Either {
);
}
-class _FakeSdkIpcResponse_1 extends _i1.SmartFake implements _i3.SdkIpcResponse {
+class _FakeSdkIpcResponse_1 extends _i1.SmartFake
+ implements _i3.SdkIpcResponse {
_FakeSdkIpcResponse_1(
Object parent,
Invocation parentInvocation,
@@ -90,7 +102,8 @@ class _FakeObservable_3 extends _i1.SmartFake implements _i5.Observable {
);
}
-class _FakeAccountPublicInfo_4 extends _i1.SmartFake implements _i6.AccountPublicInfo {
+class _FakeAccountPublicInfo_4 extends _i1.SmartFake
+ implements _i6.AccountPublicInfo {
_FakeAccountPublicInfo_4(
Object parent,
Invocation parentInvocation,
@@ -121,7 +134,9 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore {
userName,
],
),
- returnValue: _i8.Future<_i2.Either<_i9.Failure, _i6.AccountPublicInfo>>.value(_FakeEither_0<_i9.Failure, _i6.AccountPublicInfo>(
+ returnValue:
+ _i8.Future<_i2.Either<_i9.Failure, _i6.AccountPublicInfo>>.value(
+ _FakeEither_0<_i9.Failure, _i6.AccountPublicInfo>(
this,
Invocation.method(
#importAlanWallet,
@@ -132,14 +147,16 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore {
),
)),
) as _i8.Future<_i2.Either<_i9.Failure, _i6.AccountPublicInfo>>);
-
@override
- _i8.Future<_i3.SdkIpcResponse> createCookbook(Map? json) => (super.noSuchMethod(
+ _i8.Future<_i3.SdkIpcResponse> createCookbook(
+ Map? json) =>
+ (super.noSuchMethod(
Invocation.method(
#createCookbook,
[json],
),
- returnValue: _i8.Future<_i3.SdkIpcResponse>.value(_FakeSdkIpcResponse_1(
+ returnValue: _i8.Future<_i3.SdkIpcResponse>.value(
+ _FakeSdkIpcResponse_1(
this,
Invocation.method(
#createCookbook,
@@ -147,14 +164,16 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore {
),
)),
) as _i8.Future<_i3.SdkIpcResponse>);
-
@override
- _i8.Future<_i3.SdkIpcResponse> createRecipe(Map? json) => (super.noSuchMethod(
+ _i8.Future<_i3.SdkIpcResponse> createRecipe(
+ Map? json) =>
+ (super.noSuchMethod(
Invocation.method(
#createRecipe,
[json],
),
- returnValue: _i8.Future<_i3.SdkIpcResponse>.value(_FakeSdkIpcResponse_1(
+ returnValue: _i8.Future<_i3.SdkIpcResponse>.value(
+ _FakeSdkIpcResponse_1(
this,
Invocation.method(
#createRecipe,
@@ -162,14 +181,16 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore {
),
)),
) as _i8.Future<_i3.SdkIpcResponse>);
-
@override
- _i8.Future<_i3.SdkIpcResponse<_i10.Execution>> executeRecipe(Map? json) => (super.noSuchMethod(
+ _i8.Future<_i3.SdkIpcResponse<_i10.Execution>> executeRecipe(
+ Map? json) =>
+ (super.noSuchMethod(
Invocation.method(
#executeRecipe,
[json],
),
- returnValue: _i8.Future<_i3.SdkIpcResponse<_i10.Execution>>.value(_FakeSdkIpcResponse_1<_i10.Execution>(
+ returnValue: _i8.Future<_i3.SdkIpcResponse<_i10.Execution>>.value(
+ _FakeSdkIpcResponse_1<_i10.Execution>(
this,
Invocation.method(
#executeRecipe,
@@ -177,14 +198,16 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore {
),
)),
) as _i8.Future<_i3.SdkIpcResponse<_i10.Execution>>);
-
@override
- _i8.Future<_i3.SdkIpcResponse> createTrade(Map? json) => (super.noSuchMethod(
+ _i8.Future<_i3.SdkIpcResponse> createTrade(
+ Map? json) =>
+ (super.noSuchMethod(
Invocation.method(
#createTrade,
[json],
),
- returnValue: _i8.Future<_i3.SdkIpcResponse>.value(_FakeSdkIpcResponse_1(
+ returnValue: _i8.Future<_i3.SdkIpcResponse>.value(
+ _FakeSdkIpcResponse_1(
this,
Invocation.method(
#createTrade,
@@ -192,14 +215,16 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore {
),
)),
) as _i8.Future<_i3.SdkIpcResponse>);
-
@override
- _i8.Future<_i3.SdkIpcResponse> fulfillTrade(Map? json) => (super.noSuchMethod(
+ _i8.Future<_i3.SdkIpcResponse> fulfillTrade(
+ Map? json) =>
+ (super.noSuchMethod(
Invocation.method(
#fulfillTrade,
[json],
),
- returnValue: _i8.Future<_i3.SdkIpcResponse>.value(_FakeSdkIpcResponse_1(
+ returnValue: _i8.Future<_i3.SdkIpcResponse>.value(
+ _FakeSdkIpcResponse_1(
this,
Invocation.method(
#fulfillTrade,
@@ -207,7 +232,6 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore {
),
)),
) as _i8.Future<_i3.SdkIpcResponse>);
-
@override
_i8.Future<_i4.TxResponse> getTxs(String? txHash) => (super.noSuchMethod(
Invocation.method(
@@ -222,25 +246,24 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore {
),
)),
) as _i8.Future<_i4.TxResponse>);
-
@override
- _i8.Future<_i10.Cookbook?> getCookbookById(String? cookbookID) => (super.noSuchMethod(
+ _i8.Future<_i10.Cookbook?> getCookbookById(String? cookbookID) =>
+ (super.noSuchMethod(
Invocation.method(
#getCookbookById,
[cookbookID],
),
returnValue: _i8.Future<_i10.Cookbook?>.value(),
) as _i8.Future<_i10.Cookbook?>);
-
@override
- _i8.Future> getCookbooksByCreator(String? creator) => (super.noSuchMethod(
+ _i8.Future> getCookbooksByCreator(String? creator) =>
+ (super.noSuchMethod(
Invocation.method(
#getCookbooksByCreator,
[creator],
),
returnValue: _i8.Future>.value(<_i10.Cookbook>[]),
) as _i8.Future>);
-
@override
_i8.Future<_i10.Trade?> getTradeByID(_i11.Int64? ID) => (super.noSuchMethod(
Invocation.method(
@@ -249,16 +272,15 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore {
),
returnValue: _i8.Future<_i10.Trade?>.value(),
) as _i8.Future<_i10.Trade?>);
-
@override
- _i8.Future> getTrades(String? creator) => (super.noSuchMethod(
+ _i8.Future> getTrades(String? creator) =>
+ (super.noSuchMethod(
Invocation.method(
#getTrades,
[creator],
),
returnValue: _i8.Future>.value(<_i10.Trade>[]),
) as _i8.Future>);
-
@override
_i8.Future<_i2.Either<_i9.Failure, _i10.Recipe>> getRecipe(
String? cookbookID,
@@ -272,7 +294,8 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore {
recipeID,
],
),
- returnValue: _i8.Future<_i2.Either<_i9.Failure, _i10.Recipe>>.value(_FakeEither_0<_i9.Failure, _i10.Recipe>(
+ returnValue: _i8.Future<_i2.Either<_i9.Failure, _i10.Recipe>>.value(
+ _FakeEither_0<_i9.Failure, _i10.Recipe>(
this,
Invocation.method(
#getRecipe,
@@ -283,7 +306,6 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore {
),
)),
) as _i8.Future<_i2.Either<_i9.Failure, _i10.Recipe>>);
-
@override
_i8.Future<_i10.Item?> getItem(
String? cookbookID,
@@ -299,34 +321,33 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore {
),
returnValue: _i8.Future<_i10.Item?>.value(),
) as _i8.Future<_i10.Item?>);
-
@override
- _i8.Future> getItemsByOwner(String? owner) => (super.noSuchMethod(
+ _i8.Future> getItemsByOwner(String? owner) =>
+ (super.noSuchMethod(
Invocation.method(
#getItemsByOwner,
[owner],
),
returnValue: _i8.Future>.value(<_i10.Item>[]),
) as _i8.Future>);
-
@override
- _i8.Future getAccountNameByAddress(String? address) => (super.noSuchMethod(
+ _i8.Future getAccountNameByAddress(String? address) =>
+ (super.noSuchMethod(
Invocation.method(
#getAccountNameByAddress,
[address],
),
returnValue: _i8.Future.value(''),
) as _i8.Future);
-
@override
- _i8.Future getAccountAddressByName(String? username) => (super.noSuchMethod(
+ _i8.Future getAccountAddressByName(String? username) =>
+ (super.noSuchMethod(
Invocation.method(
#getAccountAddressByName,
[username],
),
returnValue: _i8.Future.value(''),
) as _i8.Future);
-
@override
_i8.Future> getRecipeExecutions(
String? cookbookID,
@@ -342,15 +363,17 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore {
),
returnValue: _i8.Future>.value(<_i10.Execution>[]),
) as _i8.Future>);
-
@override
- _i8.Future<_i2.Either<_i9.Failure, int>> getFaucetCoin({String? denom = r''}) => (super.noSuchMethod(
+ _i8.Future<_i2.Either<_i9.Failure, int>> getFaucetCoin(
+ {String? denom = r''}) =>
+ (super.noSuchMethod(
Invocation.method(
#getFaucetCoin,
[],
{#denom: denom},
),
- returnValue: _i8.Future<_i2.Either<_i9.Failure, int>>.value(_FakeEither_0<_i9.Failure, int>(
+ returnValue: _i8.Future<_i2.Either<_i9.Failure, int>>.value(
+ _FakeEither_0<_i9.Failure, int>(
this,
Invocation.method(
#getFaucetCoin,
@@ -359,7 +382,6 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore {
),
)),
) as _i8.Future<_i2.Either<_i9.Failure, int>>);
-
@override
_i8.Future isAccountExists(String? username) => (super.noSuchMethod(
Invocation.method(
@@ -368,14 +390,16 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore {
),
returnValue: _i8.Future.value(false),
) as _i8.Future);
-
@override
- _i8.Future<_i3.SdkIpcResponse> updateRecipe(Map? jsonMap) => (super.noSuchMethod(
+ _i8.Future<_i3.SdkIpcResponse> updateRecipe(
+ Map? jsonMap) =>
+ (super.noSuchMethod(
Invocation.method(
#updateRecipe,
[jsonMap],
),
- returnValue: _i8.Future<_i3.SdkIpcResponse>.value(_FakeSdkIpcResponse_1(
+ returnValue: _i8.Future<_i3.SdkIpcResponse>.value(
+ _FakeSdkIpcResponse_1(
this,
Invocation.method(
#updateRecipe,
@@ -383,15 +407,19 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore {
),
)),
) as _i8.Future<_i3.SdkIpcResponse>);
-
@override
- _i8.Future<_i2.Either<_i9.Failure, _i6.AccountPublicInfo>> importPylonsAccount({required String? mnemonic}) => (super.noSuchMethod(
+ _i8.Future<
+ _i2.Either<_i9.Failure, _i6.AccountPublicInfo>> importPylonsAccount(
+ {required String? mnemonic}) =>
+ (super.noSuchMethod(
Invocation.method(
#importPylonsAccount,
[],
{#mnemonic: mnemonic},
),
- returnValue: _i8.Future<_i2.Either<_i9.Failure, _i6.AccountPublicInfo>>.value(_FakeEither_0<_i9.Failure, _i6.AccountPublicInfo>(
+ returnValue:
+ _i8.Future<_i2.Either<_i9.Failure, _i6.AccountPublicInfo>>.value(
+ _FakeEither_0<_i9.Failure, _i6.AccountPublicInfo>(
this,
Invocation.method(
#importPylonsAccount,
@@ -400,14 +428,16 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore {
),
)),
) as _i8.Future<_i2.Either<_i9.Failure, _i6.AccountPublicInfo>>);
-
@override
- _i8.Future<_i3.SdkIpcResponse> updateCookbook(Map? jsonMap) => (super.noSuchMethod(
+ _i8.Future<_i3.SdkIpcResponse> updateCookbook(
+ Map? jsonMap) =>
+ (super.noSuchMethod(
Invocation.method(
#updateCookbook,
[jsonMap],
),
- returnValue: _i8.Future<_i3.SdkIpcResponse>.value(_FakeSdkIpcResponse_1(
+ returnValue: _i8.Future<_i3.SdkIpcResponse>.value(
+ _FakeSdkIpcResponse_1(
this,
Invocation.method(
#updateCookbook,
@@ -415,14 +445,14 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore {
),
)),
) as _i8.Future<_i3.SdkIpcResponse>);
-
@override
_i8.Future<_i3.SdkIpcResponse> getProfile() => (super.noSuchMethod(
Invocation.method(
#getProfile,
[],
),
- returnValue: _i8.Future<_i3.SdkIpcResponse>.value(_FakeSdkIpcResponse_1(
+ returnValue: _i8.Future<_i3.SdkIpcResponse>.value(
+ _FakeSdkIpcResponse_1(
this,
Invocation.method(
#getProfile,
@@ -430,7 +460,6 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore {
),
)),
) as _i8.Future<_i3.SdkIpcResponse>);
-
@override
_i8.Future signPureMessage(String? message) => (super.noSuchMethod(
Invocation.method(
@@ -439,24 +468,26 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore {
),
returnValue: _i8.Future.value(''),
) as _i8.Future);
-
@override
- _i8.Future> getRecipesByCookbookID(String? cookbookID) => (super.noSuchMethod(
+ _i8.Future> getRecipesByCookbookID(String? cookbookID) =>
+ (super.noSuchMethod(
Invocation.method(
#getRecipesByCookbookID,
[cookbookID],
),
returnValue: _i8.Future>.value(<_i10.Recipe>[]),
) as _i8.Future>);
-
@override
- _i8.Future<_i3.SdkIpcResponse> getAllRecipesByCookbookId({required String? cookbookId}) => (super.noSuchMethod(
+ _i8.Future<_i3.SdkIpcResponse> getAllRecipesByCookbookId(
+ {required String? cookbookId}) =>
+ (super.noSuchMethod(
Invocation.method(
#getAllRecipesByCookbookId,
[],
{#cookbookId: cookbookId},
),
- returnValue: _i8.Future<_i3.SdkIpcResponse>.value(_FakeSdkIpcResponse_1(
+ returnValue: _i8.Future<_i3.SdkIpcResponse>.value(
+ _FakeSdkIpcResponse_1(
this,
Invocation.method(
#getAllRecipesByCookbookId,
@@ -465,15 +496,17 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore {
),
)),
) as _i8.Future<_i3.SdkIpcResponse>);
-
@override
- _i8.Future<_i3.SdkIpcResponse> getCookbookByIdForSDK({required String? cookbookId}) => (super.noSuchMethod(
+ _i8.Future<_i3.SdkIpcResponse> getCookbookByIdForSDK(
+ {required String? cookbookId}) =>
+ (super.noSuchMethod(
Invocation.method(
#getCookbookByIdForSDK,
[],
{#cookbookId: cookbookId},
),
- returnValue: _i8.Future<_i3.SdkIpcResponse>.value(_FakeSdkIpcResponse_1(
+ returnValue: _i8.Future<_i3.SdkIpcResponse>.value(
+ _FakeSdkIpcResponse_1(
this,
Invocation.method(
#getCookbookByIdForSDK,
@@ -482,7 +515,6 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore {
),
)),
) as _i8.Future<_i3.SdkIpcResponse>);
-
@override
_i5.Observable getStateUpdatedFlag() => (super.noSuchMethod(
Invocation.method(
@@ -497,7 +529,6 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore {
),
),
) as _i5.Observable);
-
@override
void setStateUpdatedFlag({required bool? flag}) => super.noSuchMethod(
Invocation.method(
@@ -507,7 +538,6 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore {
),
returnValueForMissingStub: null,
);
-
@override
_i8.Future<_i3.SdkIpcResponse> getExecutionByRecipeId({
required String? cookbookId,
@@ -522,7 +552,8 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore {
#recipeId: recipeId,
},
),
- returnValue: _i8.Future<_i3.SdkIpcResponse>.value(_FakeSdkIpcResponse_1(
+ returnValue: _i8.Future<_i3.SdkIpcResponse>.value(
+ _FakeSdkIpcResponse_1(
this,
Invocation.method(
#getExecutionByRecipeId,
@@ -534,7 +565,6 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore {
),
)),
) as _i8.Future<_i3.SdkIpcResponse>);
-
@override
_i8.Future<_i3.SdkIpcResponse> getRecipeByIdForSDK({
required String? cookbookId,
@@ -549,7 +579,8 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore {
#recipeId: recipeId,
},
),
- returnValue: _i8.Future<_i3.SdkIpcResponse>.value(_FakeSdkIpcResponse_1(
+ returnValue: _i8.Future<_i3.SdkIpcResponse>.value(
+ _FakeSdkIpcResponse_1(
this,
Invocation.method(
#getRecipeByIdForSDK,
@@ -561,7 +592,6 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore {
),
)),
) as _i8.Future<_i3.SdkIpcResponse>);
-
@override
_i8.Future<_i3.SdkIpcResponse> getItemByIdForSDK({
required String? cookBookId,
@@ -576,7 +606,8 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore {
#itemId: itemId,
},
),
- returnValue: _i8.Future<_i3.SdkIpcResponse>.value(_FakeSdkIpcResponse_1(
+ returnValue: _i8.Future<_i3.SdkIpcResponse>.value(
+ _FakeSdkIpcResponse_1(
this,
Invocation.method(
#getItemByIdForSDK,
@@ -588,15 +619,17 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore {
),
)),
) as _i8.Future<_i3.SdkIpcResponse>);
-
@override
- _i8.Future<_i3.SdkIpcResponse> getItemListByOwner({required String? owner}) => (super.noSuchMethod(
+ _i8.Future<_i3.SdkIpcResponse> getItemListByOwner(
+ {required String? owner}) =>
+ (super.noSuchMethod(
Invocation.method(
#getItemListByOwner,
[],
{#owner: owner},
),
- returnValue: _i8.Future<_i3.SdkIpcResponse>.value(_FakeSdkIpcResponse_1(
+ returnValue: _i8.Future<_i3.SdkIpcResponse>.value(
+ _FakeSdkIpcResponse_1(
this,
Invocation.method(
#getItemListByOwner,
@@ -605,15 +638,17 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore {
),
)),
) as _i8.Future<_i3.SdkIpcResponse>);
-
@override
- _i8.Future<_i3.SdkIpcResponse> getExecutionBasedOnId({required String? id}) => (super.noSuchMethod(
+ _i8.Future<_i3.SdkIpcResponse> getExecutionBasedOnId(
+ {required String? id}) =>
+ (super.noSuchMethod(
Invocation.method(
#getExecutionBasedOnId,
[],
{#id: id},
),
- returnValue: _i8.Future<_i3.SdkIpcResponse>.value(_FakeSdkIpcResponse_1(
+ returnValue: _i8.Future<_i3.SdkIpcResponse>.value(
+ _FakeSdkIpcResponse_1(
this,
Invocation.method(
#getExecutionBasedOnId,
@@ -622,15 +657,17 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore {
),
)),
) as _i8.Future<_i3.SdkIpcResponse>);
-
@override
- _i8.Future<_i3.SdkIpcResponse> getTradesForSDK({required String? creator}) => (super.noSuchMethod(
+ _i8.Future<_i3.SdkIpcResponse> getTradesForSDK(
+ {required String? creator}) =>
+ (super.noSuchMethod(
Invocation.method(
#getTradesForSDK,
[],
{#creator: creator},
),
- returnValue: _i8.Future<_i3.SdkIpcResponse>.value(_FakeSdkIpcResponse_1(
+ returnValue: _i8.Future<_i3.SdkIpcResponse>.value(
+ _FakeSdkIpcResponse_1(
this,
Invocation.method(
#getTradesForSDK,
@@ -639,7 +676,6 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore {
),
)),
) as _i8.Future<_i3.SdkIpcResponse>);
-
@override
_i8.Future deleteAccounts() => (super.noSuchMethod(
Invocation.method(
@@ -648,9 +684,10 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore {
),
returnValue: _i8.Future.value(false),
) as _i8.Future);
-
@override
- _i2.Either<_i9.Failure, bool> saveInitialLink({required String? initialLink}) => (super.noSuchMethod(
+ _i2.Either<_i9.Failure, bool> saveInitialLink(
+ {required String? initialLink}) =>
+ (super.noSuchMethod(
Invocation.method(
#saveInitialLink,
[],
@@ -665,7 +702,6 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore {
),
),
) as _i2.Either<_i9.Failure, bool>);
-
@override
_i2.Either<_i9.Failure, String> getInitialLink() => (super.noSuchMethod(
Invocation.method(
@@ -680,36 +716,42 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore {
),
),
) as _i2.Either<_i9.Failure, String>);
-
- @override
- _i8.Future<_i2.Either<_i9.Failure, String>> sendGoogleInAppPurchaseCoinsRequest(_i12.GoogleInAppPurchaseModel? googleInAppPurchaseModel) => (super.noSuchMethod(
- Invocation.method(
- #sendGoogleInAppPurchaseCoinsRequest,
- [googleInAppPurchaseModel],
- ),
- returnValue: _i8.Future<_i2.Either<_i9.Failure, String>>.value(_FakeEither_0<_i9.Failure, String>(
- this,
- Invocation.method(
- #sendGoogleInAppPurchaseCoinsRequest,
- [googleInAppPurchaseModel],
- ),
- )),
- ) as _i8.Future<_i2.Either<_i9.Failure, String>>);
-
@override
- _i8.Future<_i2.Either<_i9.Failure, String>> sendAppleInAppPurchaseCoinsRequest(_i12.AppleInAppPurchaseModel? appleInAppPurchaseModel) => (super.noSuchMethod(
- Invocation.method(
- #sendAppleInAppPurchaseCoinsRequest,
- [appleInAppPurchaseModel],
- ),
- returnValue: _i8.Future<_i2.Either<_i9.Failure, String>>.value(_FakeEither_0<_i9.Failure, String>(
- this,
- Invocation.method(
- #sendAppleInAppPurchaseCoinsRequest,
- [appleInAppPurchaseModel],
- ),
- )),
- ) as _i8.Future<_i2.Either<_i9.Failure, String>>);
+ _i8.Future<_i2.Either<_i9.Failure, String>>
+ sendGoogleInAppPurchaseCoinsRequest(
+ _i12.GoogleInAppPurchaseModel? googleInAppPurchaseModel) =>
+ (super.noSuchMethod(
+ Invocation.method(
+ #sendGoogleInAppPurchaseCoinsRequest,
+ [googleInAppPurchaseModel],
+ ),
+ returnValue: _i8.Future<_i2.Either<_i9.Failure, String>>.value(
+ _FakeEither_0<_i9.Failure, String>(
+ this,
+ Invocation.method(
+ #sendGoogleInAppPurchaseCoinsRequest,
+ [googleInAppPurchaseModel],
+ ),
+ )),
+ ) as _i8.Future<_i2.Either<_i9.Failure, String>>);
+ @override
+ _i8.Future<_i2.Either<_i9.Failure, String>>
+ sendAppleInAppPurchaseCoinsRequest(
+ _i12.AppleInAppPurchaseModel? appleInAppPurchaseModel) =>
+ (super.noSuchMethod(
+ Invocation.method(
+ #sendAppleInAppPurchaseCoinsRequest,
+ [appleInAppPurchaseModel],
+ ),
+ returnValue: _i8.Future<_i2.Either<_i9.Failure, String>>.value(
+ _FakeEither_0<_i9.Failure, String>(
+ this,
+ Invocation.method(
+ #sendAppleInAppPurchaseCoinsRequest,
+ [appleInAppPurchaseModel],
+ ),
+ )),
+ ) as _i8.Future<_i2.Either<_i9.Failure, String>>);
}
/// A class which mocks [AccountPublicInfo].
@@ -725,31 +767,26 @@ class MockAccountPublicInfo extends _i1.Mock implements _i6.AccountPublicInfo {
Invocation.getter(#name),
returnValue: '',
) as String);
-
@override
String get publicAddress => (super.noSuchMethod(
Invocation.getter(#publicAddress),
returnValue: '',
) as String);
-
@override
String get accountId => (super.noSuchMethod(
Invocation.getter(#accountId),
returnValue: '',
) as String);
-
@override
String get chainId => (super.noSuchMethod(
Invocation.getter(#chainId),
returnValue: '',
) as String);
-
@override
List