fix mobile wallet settings showing firo specifics to all wallets

This commit is contained in:
julian 2024-06-19 14:16:08 -06:00
parent a22a97aee1
commit e9075741ee

View file

@ -11,11 +11,14 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart';
import '../../../../providers/providers.dart';
import '../../../../route_generator.dart'; import '../../../../route_generator.dart';
import '../../../../themes/stack_colors.dart'; import '../../../../themes/stack_colors.dart';
import '../../../../utilities/constants.dart'; import '../../../../utilities/constants.dart';
import '../../../../utilities/text_styles.dart'; import '../../../../utilities/text_styles.dart';
import '../../../../wallets/isar/providers/wallet_info_provider.dart'; import '../../../../wallets/isar/providers/wallet_info_provider.dart';
import '../../../../wallets/wallet/wallet_mixin_interfaces/lelantus_interface.dart';
import '../../../../wallets/wallet/wallet_mixin_interfaces/spark_interface.dart';
import '../../../../widgets/background.dart'; import '../../../../widgets/background.dart';
import '../../../../widgets/custom_buttons/app_bar_icon_button.dart'; import '../../../../widgets/custom_buttons/app_bar_icon_button.dart';
import '../../../../widgets/rounded_white_container.dart'; import '../../../../widgets/rounded_white_container.dart';
@ -183,9 +186,13 @@ class WalletSettingsWalletSettingsView extends ConsumerWidget {
), ),
), ),
), ),
if (ref.watch(pWallets).getWallet(walletId)
is LelantusInterface)
const SizedBox( const SizedBox(
height: 8, height: 8,
), ),
if (ref.watch(pWallets).getWallet(walletId)
is LelantusInterface)
RoundedWhiteContainer( RoundedWhiteContainer(
padding: const EdgeInsets.all(0), padding: const EdgeInsets.all(0),
child: RawMaterialButton( child: RawMaterialButton(
@ -217,9 +224,11 @@ class WalletSettingsWalletSettingsView extends ConsumerWidget {
), ),
), ),
), ),
if (ref.watch(pWallets).getWallet(walletId) is SparkInterface)
const SizedBox( const SizedBox(
height: 8, height: 8,
), ),
if (ref.watch(pWallets).getWallet(walletId) is SparkInterface)
RoundedWhiteContainer( RoundedWhiteContainer(
padding: const EdgeInsets.all(0), padding: const EdgeInsets.all(0),
child: RawMaterialButton( child: RawMaterialButton(