Change position and color of pinned icon

This commit is contained in:
Elias Bonnici 2024-05-03 08:57:50 +02:00
parent 52903051f1
commit 5ac8646df8
No known key found for this signature in database
GPG Key ID: 5EAC28EA3F980CCF

View File

@ -188,6 +188,15 @@ class _AccountViewState extends ConsumerState<AccountView> {
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
IconButton(
onPressed: Actions.handler(
context, TogglePinIntent(credential)),
icon: Icon(
Symbols.push_pin,
fill: 1,
color: Colors.grey.shade600,
),
),
helper.code != null
? FilledButton.tonalIcon(
icon: helper.buildCodeIcon(),
@ -199,11 +208,6 @@ class _AccountViewState extends ConsumerState<AccountView> {
style: buttonStyle,
onPressed: Actions.handler(context, openIntent),
child: helper.buildCodeIcon()),
IconButton(
onPressed: Actions.handler(
context, TogglePinIntent(credential)),
icon: const Icon(Symbols.push_pin, fill: 1),
)
],
)
],