mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-29 21:55:58 +00:00
my stack contact tweaks
This commit is contained in:
parent
0503999fa7
commit
8799a9cfa2
3 changed files with 19 additions and 12 deletions
|
@ -559,7 +559,7 @@ class _AddAddressBookEntryViewState
|
|||
),
|
||||
],
|
||||
),
|
||||
if (!isDesktop) const SizedBox(height: 8),
|
||||
const SizedBox(height: 8),
|
||||
if (forms.length <= 1)
|
||||
const SizedBox(
|
||||
height: 8,
|
||||
|
|
|
@ -11,9 +11,11 @@ class DesktopAddressCard extends StatelessWidget {
|
|||
const DesktopAddressCard({
|
||||
Key? key,
|
||||
required this.entry,
|
||||
required this.contactId,
|
||||
}) : super(key: key);
|
||||
|
||||
final ContactAddressEntry entry;
|
||||
final String contactId;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
@ -57,13 +59,15 @@ class DesktopAddressCard extends StatelessWidget {
|
|||
text: "Copy",
|
||||
onTap: () {},
|
||||
),
|
||||
const SizedBox(
|
||||
width: 16,
|
||||
),
|
||||
BlueTextButton(
|
||||
text: "Edit",
|
||||
onTap: () {},
|
||||
),
|
||||
if (contactId != "default")
|
||||
const SizedBox(
|
||||
width: 16,
|
||||
),
|
||||
if (contactId != "default")
|
||||
BlueTextButton(
|
||||
text: "Edit",
|
||||
onTap: () {},
|
||||
),
|
||||
],
|
||||
)
|
||||
],
|
||||
|
|
|
@ -40,16 +40,18 @@ class _DesktopContactDetailsState extends ConsumerState<DesktopContactDetails> {
|
|||
width: 32,
|
||||
height: 32,
|
||||
decoration: BoxDecoration(
|
||||
color: Theme.of(context)
|
||||
.extension<StackColors>()!
|
||||
.textFieldDefaultBG,
|
||||
color: contact.id == "default"
|
||||
? Colors.transparent
|
||||
: Theme.of(context)
|
||||
.extension<StackColors>()!
|
||||
.textFieldDefaultBG,
|
||||
borderRadius: BorderRadius.circular(32),
|
||||
),
|
||||
child: contact.id == "default"
|
||||
? Center(
|
||||
child: SvgPicture.asset(
|
||||
Assets.svg.stackIcon(context),
|
||||
width: 20,
|
||||
width: 32,
|
||||
),
|
||||
)
|
||||
: contact.emojiChar != null
|
||||
|
@ -134,6 +136,7 @@ class _DesktopContactDetailsState extends ConsumerState<DesktopContactDetails> {
|
|||
padding: const EdgeInsets.all(18),
|
||||
child: DesktopAddressCard(
|
||||
entry: contact.addresses[i],
|
||||
contactId: contact.id,
|
||||
),
|
||||
),
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue