style(app): the profile page's link a row alone, without a Column around it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
Tizian 「ティツィアーン」 2026-11-03 23:21:45 +01:00
commit 3eb757c921
Signed by: raisondetredev
GPG key ID: 07F6FCF405488B64

View file

@ -733,38 +733,33 @@ class const _ProfilePage({required final String url}) extends StatelessWidget {
final theme = Theme.of(context); final theme = Theme.of(context);
return Padding( return Padding(
padding: const EdgeInsets.only(top: 8), padding: const EdgeInsets.only(top: 8),
child: Column( child: Row(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [ children: [
Row( Expanded(
children: [ child: Text(
Expanded( l10n.publicProfilePage(
child: Text( url.replaceFirst(RegExp('^https?://'), ''),
l10n.publicProfilePage(
url.replaceFirst(RegExp('^https?://'), ''),
),
style: theme.textTheme.bodyMedium,
maxLines: 2,
overflow: TextOverflow.ellipsis,
),
), ),
// What linking back does, behind its question mark (decided style: theme.textTheme.bodyMedium,
// 3 Nov 2026). maxLines: 2,
HelpButton(l10n.publicProfileVerifyHint), overflow: TextOverflow.ellipsis,
IconButton( ),
tooltip: l10n.publicProfilePageCopy, ),
icon: const Icon(LucideIcons.copy, size: 18), // What linking back does, behind its question mark (decided
onPressed: () async { // 3 Nov 2026).
final messenger = ScaffoldMessenger.of(context); HelpButton(l10n.publicProfileVerifyHint),
await Clipboard.setData(ClipboardData(text: url)); IconButton(
messenger tooltip: l10n.publicProfilePageCopy,
..hideCurrentSnackBar() icon: const Icon(LucideIcons.copy, size: 18),
..showSnackBar( onPressed: () async {
SnackBar(content: Text(l10n.publicProfilePageCopied)), final messenger = ScaffoldMessenger.of(context);
); await Clipboard.setData(ClipboardData(text: url));
}, messenger
), ..hideCurrentSnackBar()
], ..showSnackBar(
SnackBar(content: Text(l10n.publicProfilePageCopied)),
);
},
), ),
], ],
), ),