@@ -3,6 +3,7 @@ import 'package:bb_mobile/core/themes/app_theme.dart';
33import 'package:bb_mobile/core/utils/build_context_x.dart' ;
44import 'package:bb_mobile/core/utils/constants.dart' ;
55import 'package:bb_mobile/core/widgets/buttons/button.dart' ;
6+ import 'package:bb_mobile/core/widgets/cards/info_card.dart' ;
67import 'package:bb_mobile/core/widgets/text/text.dart' ;
78import 'package:bb_mobile/features/import_qr_device/device_instructions_bottom_sheet.dart' ;
89import 'package:bb_mobile/features/import_watch_only_wallet/import_watch_only_router.dart' ;
@@ -41,6 +42,15 @@ class ImportQrDevicePage extends StatelessWidget {
4142 maxLines: 2 ,
4243 ),
4344
45+ if (device == SignerDeviceEntity .jade) ...[
46+ Gap (Device .screen.height * 0.03 ),
47+ InfoCard (
48+ description: context.loc.importQrDeviceJadeFirmwareWarning,
49+ tagColor: context.appColors.warning,
50+ bgColor: context.appColors.warningContainer,
51+ ),
52+ ],
53+
4454 Gap (Device .screen.height * 0.05 ),
4555 Image .asset (
4656 Assets .misc.qRPlaceholder.path,
@@ -53,11 +63,10 @@ class ImportQrDevicePage extends StatelessWidget {
5363 children: [
5464 BBButton .small (
5565 label: context.loc.importQrDeviceButtonOpenCamera,
56- onPressed:
57- () => context.pushNamed (
58- ImportWatchOnlyWalletRoutes .scan.name,
59- extra: device,
60- ),
66+ onPressed: () => context.pushNamed (
67+ ImportWatchOnlyWalletRoutes .scan.name,
68+ extra: device,
69+ ),
6170 bgColor: context.appColors.surface,
6271 textColor: context.appColors.text,
6372 outlined: true ,
@@ -66,12 +75,11 @@ class ImportQrDevicePage extends StatelessWidget {
6675 Gap (Device .screen.height * 0.02 ),
6776 BBButton .small (
6877 label: context.loc.importQrDeviceButtonInstructions,
69- onPressed:
70- () => DeviceInstructionsBottomSheet .show (
71- context,
72- title: instructionsTitle,
73- instructions: instructions,
74- ),
78+ onPressed: () => DeviceInstructionsBottomSheet .show (
79+ context,
80+ title: instructionsTitle,
81+ instructions: instructions,
82+ ),
7583 bgColor: context.appColors.surface,
7684 textColor: context.appColors.text,
7785 outlined: true ,
0 commit comments