chore: Follow up manage aliases

pull/1031/head
krille-chan 2 years ago
parent e42591e810
commit 0210f791a0
No known key found for this signature in database

@ -225,30 +225,27 @@ class _AliasListTile extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return ListTile( return ListTile(
title: Row( leading: isCanonicalAlias
children: [ ? const Icon(Icons.star)
TextButton.icon( : const Icon(Icons.link_outlined),
onPressed: () => FluffyShare.share( title: InkWell(
onTap: () => FluffyShare.share(
'https://matrix.to/#/$alias', 'https://matrix.to/#/$alias',
context, context,
), ),
icon: isCanonicalAlias child: Text(
? const Icon(Icons.star)
: const Icon(Icons.link_outlined),
label: SelectableText(
'https://matrix.to/#/$alias', 'https://matrix.to/#/$alias',
style: TextStyle( style: TextStyle(
decoration: TextDecoration.underline, decoration: TextDecoration.underline,
decorationColor: Theme.of(context).colorScheme.primary, decorationColor: Theme.of(context).colorScheme.primary,
color: Theme.of(context).colorScheme.primary, color: Theme.of(context).colorScheme.primary,
fontSize: 14,
), ),
), ),
), ),
const Spacer(),
],
),
trailing: onDelete != null trailing: onDelete != null
? IconButton( ? IconButton(
color: Theme.of(context).colorScheme.error,
icon: const Icon(Icons.delete_outlined), icon: const Icon(Icons.delete_outlined),
onPressed: onDelete, onPressed: onDelete,
) )

Loading…
Cancel
Save