mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 17:57:40 +00:00
key fix for duplicate wallets edge case
This commit is contained in:
parent
ae8daa4902
commit
2253629dd6
1 changed files with 5 additions and 1 deletions
|
@ -42,6 +42,9 @@ class _ContactListItemState extends ConsumerState<ContactListItem> {
|
||||||
final contact = ref.watch(addressBookServiceProvider
|
final contact = ref.watch(addressBookServiceProvider
|
||||||
.select((value) => value.getContactById(contactId)));
|
.select((value) => value.getContactById(contactId)));
|
||||||
|
|
||||||
|
// hack fix until we use a proper database (not Hive)
|
||||||
|
int i = 0;
|
||||||
|
|
||||||
return RoundedWhiteContainer(
|
return RoundedWhiteContainer(
|
||||||
padding: const EdgeInsets.all(0),
|
padding: const EdgeInsets.all(0),
|
||||||
borderColor: Theme.of(context).extension<StackColors>()!.background,
|
borderColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
|
@ -70,7 +73,8 @@ class _ContactListItemState extends ConsumerState<ContactListItem> {
|
||||||
filterByCoin != null ? e.coin == filterByCoin! : true)
|
filterByCoin != null ? e.coin == filterByCoin! : true)
|
||||||
.map(
|
.map(
|
||||||
(e) => Column(
|
(e) => Column(
|
||||||
key: Key("contactAddress_${e.address}_${e.label}_key"),
|
key: Key(
|
||||||
|
"contactAddress_${e.address}_${e.label}_${++i}_key"),
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
|
|
Loading…
Reference in a new issue