|
|
@ -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(
|
|
|
|
'https://matrix.to/#/$alias',
|
|
|
|
onTap: () => FluffyShare.share(
|
|
|
|
context,
|
|
|
|
'https://matrix.to/#/$alias',
|
|
|
|
),
|
|
|
|
context,
|
|
|
|
icon: isCanonicalAlias
|
|
|
|
),
|
|
|
|
? const Icon(Icons.star)
|
|
|
|
child: Text(
|
|
|
|
: const Icon(Icons.link_outlined),
|
|
|
|
'https://matrix.to/#/$alias',
|
|
|
|
label: SelectableText(
|
|
|
|
style: TextStyle(
|
|
|
|
'https://matrix.to/#/$alias',
|
|
|
|
decoration: TextDecoration.underline,
|
|
|
|
style: TextStyle(
|
|
|
|
decorationColor: Theme.of(context).colorScheme.primary,
|
|
|
|
decoration: TextDecoration.underline,
|
|
|
|
color: Theme.of(context).colorScheme.primary,
|
|
|
|
decorationColor: Theme.of(context).colorScheme.primary,
|
|
|
|
fontSize: 14,
|
|
|
|
color: Theme.of(context).colorScheme.primary,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
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,
|
|
|
|
)
|
|
|
|
)
|
|
|
|