Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 21 additions & 20 deletions lib/features/ark/ui/receive_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,9 @@ class _ReceivePageState extends State<ReceivePage> {
),
const Gap(16),
ReceiveQR(
qrData:
_selectedOption! == context.loc.arkReceiveSegmentBoarding
? btcAddress
: arkAddress,
qrData: _selectedOption! == context.loc.arkReceiveSegmentBoarding
? btcAddress
: arkAddress,
),
const Gap(16),
ArkCopyAddressSection(
Expand Down Expand Up @@ -87,13 +86,16 @@ class ReceiveQR extends StatelessWidget {
padding: const EdgeInsets.all(16),
constraints: const BoxConstraints(maxHeight: 300, maxWidth: 300),
decoration: BoxDecoration(
color: context.appColors.onPrimary,
color: context.appColors.background,
borderRadius: BorderRadius.circular(12),
),
child:
qrData.isNotEmpty
? QrImageView(data: qrData)
: const LoadingBoxContent(height: 200),
child: qrData.isNotEmpty
? QrImageView(
data: qrData,
// ignore: deprecated_member_use
foregroundColor: context.appColors.secondary,
)
: const LoadingBoxContent(height: 200),
),
);
}
Expand All @@ -120,12 +122,12 @@ class _ArkCopyAddressSectionState extends State<ArkCopyAddressSection> {
Widget build(BuildContext context) {
final currentAddress =
widget.selectedOption == context.loc.arkReceiveSegmentBoarding
? widget.btcAddress
: widget.arkAddress;
? widget.btcAddress
: widget.arkAddress;
final addressLabel =
widget.selectedOption == context.loc.arkReceiveSegmentBoarding
? context.loc.arkReceiveBoardingAddress
: context.loc.arkArkAddress;
? context.loc.arkReceiveBoardingAddress
: context.loc.arkArkAddress;

return Padding(
padding: const EdgeInsets.symmetric(horizontal: 16),
Expand All @@ -140,13 +142,12 @@ class _ArkCopyAddressSectionState extends State<ArkCopyAddressSection> {
overflow: .ellipsis,
canShowValueModal: true,
modalTitle: addressLabel,
modalContent:
currentAddress
.replaceAllMapped(
RegExp('.{1,4}'),
(match) => '${match.group(0)} ',
)
.trim(),
modalContent: currentAddress
.replaceAllMapped(
RegExp('.{1,4}'),
(match) => '${match.group(0)} ',
)
.trim(),
),
],
),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:bb_mobile/core/exchange/domain/entity/funding_details.dart';
import 'package:bb_mobile/core/themes/app_theme.dart';
import 'package:bb_mobile/core/utils/build_context_x.dart';
import 'package:bb_mobile/core/widgets/loading/loading_box_content.dart';
import 'package:bb_mobile/core/widgets/text/text.dart';
Expand Down Expand Up @@ -75,7 +76,19 @@ class FundExchangeCanadaPostScreen extends StatelessWidget {
if (details?.code == null)
const LoadingBoxContent(height: 250.0, width: 250.0)
else
QrImageView(size: 250, data: details!.code),
Container(
padding: const EdgeInsets.all(16),
decoration: BoxDecoration(
color: context.appColors.background,
borderRadius: BorderRadius.circular(12),
),
child: QrImageView(
size: 250,
data: details!.code,
// ignore: deprecated_member_use
foregroundColor: context.appColors.secondary,
),
),
const Gap(24.0),
],
),
Expand Down
23 changes: 9 additions & 14 deletions lib/features/import_coldcard_q/import_coldcard_q_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,16 @@ class ImportColdcardQPage extends StatelessWidget {
Assets.misc.qRPlaceholder.path,
height: 200,
width: 200,
color: context.appColors.text,
),
Gap(Device.screen.height * 0.05),
Column(
children: [
BBButton.small(
label: context.loc.importColdcardButtonOpenCamera,
onPressed:
() => context.pushNamed(
ImportWatchOnlyWalletRoutes.scan.name,
extra: SignerDeviceEntity.coldcardQ,
),
onPressed: () => context.pushNamed(
ImportWatchOnlyWalletRoutes.scan.name,
extra: SignerDeviceEntity.coldcardQ,
),
bgColor: context.appColors.surface,
textColor: context.appColors.text,
outlined: true,
Expand All @@ -56,21 +54,18 @@ class ImportColdcardQPage extends StatelessWidget {
Gap(Device.screen.height * 0.02),
BBButton.small(
label: context.loc.importColdcardButtonInstructions,
onPressed:
() => ColdcardQInstructionsBottomSheet.show(context),
onPressed: () =>
ColdcardQInstructionsBottomSheet.show(context),
bgColor: context.appColors.surface,
textColor: context.appColors.text,
outlined: true,
),
Gap(Device.screen.height * 0.02),
BBButton.small(
label: context.loc.importColdcardButtonPurchase,
onPressed:
() => launchUrl(
Uri.parse(
'https://store.coinkite.com/promo/BULLBITCOIN',
),
),
onPressed: () => launchUrl(
Uri.parse('https://store.coinkite.com/promo/BULLBITCOIN'),
),
bgColor: context.appColors.surface,
textColor: context.appColors.text,
outlined: true,
Expand Down
1 change: 0 additions & 1 deletion lib/features/import_qr_device/import_qr_device_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ class ImportQrDevicePage extends StatelessWidget {
Assets.misc.qRPlaceholder.path,
height: 200,
width: 200,
color: context.appColors.text,
),
Gap(Device.screen.height * 0.05),
Column(
Expand Down
13 changes: 6 additions & 7 deletions lib/features/import_wallet/import_wallet_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -94,19 +94,18 @@ class ImportWalletPage extends StatelessWidget {
context.pushNamed(ImportQrDeviceRoute.importPassport.name),
),
const Gap(16),
TabMenuVerticalButton(
title: context.loc.importWalletKeystone,
onTap: () =>
context.pushNamed(ImportQrDeviceRoute.importKeystone.name),
),
const Gap(16),
if (context.read<SettingsCubit>().state.isSuperuser ?? false) ...[
TabMenuVerticalButton(
title: context.loc.importWalletLedger,
onTap: () => context.pushNamed(LedgerRoute.importLedger.name),
),
const Gap(16),
TabMenuVerticalButton(
title: context.loc.importWalletKeystone,
onTap: () => context.pushNamed(
ImportQrDeviceRoute.importKeystone.name,
),
),
const Gap(16),
TabMenuVerticalButton(
title: 'BitBox',
onTap: () => Platform.isAndroid
Expand Down
9 changes: 7 additions & 2 deletions lib/features/pay/ui/widgets/pay_qr_bottom_sheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class PayQrBottomSheet extends StatelessWidget {
child: Container(
padding: const EdgeInsets.all(24),
decoration: BoxDecoration(
color: context.appColors.surfaceFixed,
color: context.appColors.background,
borderRadius: BorderRadius.circular(16),
boxShadow: [
BoxShadow(
Expand All @@ -73,7 +73,12 @@ class PayQrBottomSheet extends StatelessWidget {
child: SizedBox(
width: 280,
height: 280,
child: QrImageView(data: bip21InvoiceData, size: 280),
child: QrImageView(
data: bip21InvoiceData,
size: 280,
// ignore: deprecated_member_use
foregroundColor: context.appColors.secondary,
),
),
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,17 @@ class _ShowAnimatedQrViewState extends State<_ShowAnimatedQrView> {

return Container(
decoration: BoxDecoration(
color: context.appColors.surfaceFixed,
color: context.appColors.background,
borderRadius: BorderRadius.circular(16),
),
child: Column(
mainAxisAlignment: .start,
children: [
QrImageView(data: state.parts[state.currentIndex]),
QrImageView(
data: state.parts[state.currentIndex],
// ignore: deprecated_member_use
foregroundColor: context.appColors.secondary,
),
const Gap(16),
if (widget.showSlider) ...[
Padding(
Expand Down
24 changes: 18 additions & 6 deletions lib/features/receive/ui/screens/receive_qr_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,15 @@ class ReceiveQRDetails extends StatelessWidget {
padding: const EdgeInsets.all(16),
constraints: const BoxConstraints(maxHeight: 300, maxWidth: 300),
decoration: BoxDecoration(
color: context.appColors.onPrimary,
color: context.appColors.background,
borderRadius: BorderRadius.circular(12),
),
child: qrData.isNotEmpty
? QrImageView(data: qrData)
? QrImageView(
data: qrData,
// ignore: deprecated_member_use
foregroundColor: context.appColors.secondary,
)
: const LoadingBoxContent(height: 200),
),
),
Expand Down Expand Up @@ -371,7 +375,7 @@ class ReceiveLnInfoDetails extends StatelessWidget {
margin: const EdgeInsets.symmetric(horizontal: 16),
padding: const EdgeInsets.symmetric(horizontal: 16),
decoration: BoxDecoration(
color: context.appColors.onPrimary,
color: context.appColors.cardBackground,
borderRadius: BorderRadius.circular(2),
border: Border.all(color: context.appColors.surface),
boxShadow: [
Expand Down Expand Up @@ -407,6 +411,7 @@ class ReceiveLnInfoDetails extends StatelessWidget {
amountSat ?? 0,
showFiat: false,
style: context.font.bodyMedium,
color: context.appColors.secondary,
),
BBText(
'~$amountEquivalent',
Expand Down Expand Up @@ -435,6 +440,7 @@ class ReceiveLnInfoDetails extends StatelessWidget {
swap!.receieveAmount!,
showFiat: false,
style: context.font.bodyMedium,
color: context.appColors.secondary,
),
],
),
Expand All @@ -456,6 +462,7 @@ class ReceiveLnInfoDetails extends StatelessWidget {
child: BBText(
note.isNotEmpty ? note : '',
style: context.font.bodyMedium,
color: context.appColors.secondary,
maxLines: 5,
textAlign: .end,
),
Expand Down Expand Up @@ -488,7 +495,12 @@ class ReceiveLnSwapID extends StatelessWidget {
color: context.appColors.onSurfaceVariant,
),
const Spacer(),
BBText(swap.id, style: context.font.bodyLarge, textAlign: .end),
BBText(
swap.id,
style: context.font.bodyLarge,
color: context.appColors.secondary,
textAlign: .end,
),
const Gap(4),
InkWell(
child: Icon(Icons.copy, color: context.appColors.primary, size: 16),
Expand Down Expand Up @@ -527,7 +539,7 @@ class _ReceiveLnFeesDetailsState extends State<ReceiveLnFeesDetails> {
amt,
showFiat: false,
style: context.font.bodySmall,
color: context.appColors.onSurfaceVariant,
color: context.appColors.secondary,
),
],
),
Expand Down Expand Up @@ -564,7 +576,7 @@ class _ReceiveLnFeesDetailsState extends State<ReceiveLnFeesDetails> {
swap.fees?.totalFees(null) ?? 0,
showFiat: false,
style: context.font.bodyLarge,
color: context.appColors.onSurfaceVariant,
color: context.appColors.secondary,
),
const Gap(4),
Icon(
Expand Down
9 changes: 7 additions & 2 deletions lib/features/sell/ui/widgets/sell_qr_bottom_sheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class SellQrBottomSheet extends StatelessWidget {
child: Container(
padding: const EdgeInsets.all(24),
decoration: BoxDecoration(
color: context.appColors.surfaceFixed,
color: context.appColors.background,
borderRadius: BorderRadius.circular(16),
boxShadow: [
BoxShadow(
Expand All @@ -73,7 +73,12 @@ class SellQrBottomSheet extends StatelessWidget {
child: SizedBox(
width: 280,
height: 280,
child: QrImageView(data: bip21InvoiceData, size: 280),
child: QrImageView(
data: bip21InvoiceData,
size: 280,
// ignore: deprecated_member_use
foregroundColor: context.appColors.secondary,
),
),
),
),
Expand Down
Loading