mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-16 17:27:39 +00:00
fix mobile keys switch
This commit is contained in:
parent
eebe1df050
commit
810981dd40
1 changed files with 10 additions and 10 deletions
|
@ -89,10 +89,10 @@ class WalletBackupView extends ConsumerWidget {
|
|||
padding: const EdgeInsets.all(10),
|
||||
child: CustomTextButton(
|
||||
text: switch (keyData.runtimeType) {
|
||||
XPrivData() => "xpriv(s)",
|
||||
CWKeyData() => "keys",
|
||||
Type() => throw UnimplementedError(
|
||||
"Don't forget to add your KeyDataInterface here!",
|
||||
const (XPrivData) => "xpriv(s)",
|
||||
const (CWKeyData) => "keys",
|
||||
_ => throw UnimplementedError(
|
||||
"Don't forget to add your KeyDataInterface here! ${keyData.runtimeType}",
|
||||
),
|
||||
},
|
||||
onTap: () {
|
||||
|
@ -469,9 +469,9 @@ class MobileKeyDataView extends StatelessWidget {
|
|||
),
|
||||
title: Text(
|
||||
"Wallet ${switch (keyData.runtimeType) {
|
||||
XPrivData() => "xpriv(s)",
|
||||
CWKeyData() => "keys",
|
||||
Type() => throw UnimplementedError(
|
||||
const (XPrivData) => "xpriv(s)",
|
||||
const (CWKeyData) => "keys",
|
||||
_ => throw UnimplementedError(
|
||||
"Don't forget to add your KeyDataInterface here!",
|
||||
),
|
||||
}}",
|
||||
|
@ -491,15 +491,15 @@ class MobileKeyDataView extends StatelessWidget {
|
|||
children: [
|
||||
Expanded(
|
||||
child: switch (keyData.runtimeType) {
|
||||
XPrivData() => WalletXPrivs(
|
||||
const (XPrivData) => WalletXPrivs(
|
||||
walletId: walletId,
|
||||
xprivData: keyData as XPrivData,
|
||||
),
|
||||
CWKeyData() => CNWalletKeys(
|
||||
const (CWKeyData) => CNWalletKeys(
|
||||
walletId: walletId,
|
||||
cwKeyData: keyData as CWKeyData,
|
||||
),
|
||||
Type() => throw UnimplementedError(
|
||||
_ => throw UnimplementedError(
|
||||
"Don't forget to add your KeyDataInterface here!",
|
||||
),
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue