mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-18 16:44:32 +00:00
fix mobile wallet settings showing firo specifics to all wallets
This commit is contained in:
parent
a22a97aee1
commit
e9075741ee
1 changed files with 68 additions and 59 deletions
|
@ -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,73 +186,79 @@ class WalletSettingsWalletSettingsView extends ConsumerWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(
|
if (ref.watch(pWallets).getWallet(walletId)
|
||||||
height: 8,
|
is LelantusInterface)
|
||||||
),
|
const SizedBox(
|
||||||
RoundedWhiteContainer(
|
height: 8,
|
||||||
padding: const EdgeInsets.all(0),
|
),
|
||||||
child: RawMaterialButton(
|
if (ref.watch(pWallets).getWallet(walletId)
|
||||||
shape: RoundedRectangleBorder(
|
is LelantusInterface)
|
||||||
borderRadius: BorderRadius.circular(
|
RoundedWhiteContainer(
|
||||||
Constants.size.circularBorderRadius,
|
padding: const EdgeInsets.all(0),
|
||||||
|
child: RawMaterialButton(
|
||||||
|
shape: RoundedRectangleBorder(
|
||||||
|
borderRadius: BorderRadius.circular(
|
||||||
|
Constants.size.circularBorderRadius,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
||||||
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
onPressed: () {
|
||||||
onPressed: () {
|
Navigator.of(context).pushNamed(
|
||||||
Navigator.of(context).pushNamed(
|
LelantusSettingsView.routeName,
|
||||||
LelantusSettingsView.routeName,
|
arguments: walletId,
|
||||||
arguments: walletId,
|
);
|
||||||
);
|
},
|
||||||
},
|
child: Padding(
|
||||||
child: Padding(
|
padding: const EdgeInsets.symmetric(
|
||||||
padding: const EdgeInsets.symmetric(
|
horizontal: 12.0,
|
||||||
horizontal: 12.0,
|
vertical: 20,
|
||||||
vertical: 20,
|
),
|
||||||
),
|
child: Row(
|
||||||
child: Row(
|
children: [
|
||||||
children: [
|
Text(
|
||||||
Text(
|
"Lelantus settings",
|
||||||
"Lelantus settings",
|
style: STextStyles.titleBold12(context),
|
||||||
style: STextStyles.titleBold12(context),
|
),
|
||||||
),
|
],
|
||||||
],
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
if (ref.watch(pWallets).getWallet(walletId) is SparkInterface)
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 8,
|
height: 8,
|
||||||
),
|
),
|
||||||
RoundedWhiteContainer(
|
if (ref.watch(pWallets).getWallet(walletId) is SparkInterface)
|
||||||
padding: const EdgeInsets.all(0),
|
RoundedWhiteContainer(
|
||||||
child: RawMaterialButton(
|
padding: const EdgeInsets.all(0),
|
||||||
shape: RoundedRectangleBorder(
|
child: RawMaterialButton(
|
||||||
borderRadius: BorderRadius.circular(
|
shape: RoundedRectangleBorder(
|
||||||
Constants.size.circularBorderRadius,
|
borderRadius: BorderRadius.circular(
|
||||||
|
Constants.size.circularBorderRadius,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
||||||
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
onPressed: () {
|
||||||
onPressed: () {
|
Navigator.of(context).pushNamed(
|
||||||
Navigator.of(context).pushNamed(
|
SparkInfoView.routeName,
|
||||||
SparkInfoView.routeName,
|
);
|
||||||
);
|
},
|
||||||
},
|
child: Padding(
|
||||||
child: Padding(
|
padding: const EdgeInsets.symmetric(
|
||||||
padding: const EdgeInsets.symmetric(
|
horizontal: 12.0,
|
||||||
horizontal: 12.0,
|
vertical: 20,
|
||||||
vertical: 20,
|
),
|
||||||
),
|
child: Row(
|
||||||
child: Row(
|
children: [
|
||||||
children: [
|
Text(
|
||||||
Text(
|
"Spark info",
|
||||||
"Spark info",
|
style: STextStyles.titleBold12(context),
|
||||||
style: STextStyles.titleBold12(context),
|
),
|
||||||
),
|
],
|
||||||
],
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue