Stellar program in profile card

This commit is contained in:
2025-07-23 21:50:59 +08:00
parent e48410a528
commit 903cade296
2 changed files with 8 additions and 4 deletions

View File

@@ -26,7 +26,7 @@ class AccountProfileCard extends HookConsumerWidget {
Widget build(BuildContext context, WidgetRef ref) {
final account = ref.watch(accountProvider(uname));
final width =
math.max(MediaQuery.of(context).size.width - 80, 360).toDouble();
math.min(MediaQuery.of(context).size.width - 80, 360).toDouble();
return PopupCard(
elevation: 8,
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12.0)),
@@ -105,7 +105,10 @@ class AccountProfileCard extends HookConsumerWidget {
FilledButton.tonalIcon(
onPressed: () {
Navigator.pop(context);
context.pushNamed('accountProfile', pathParameters: {'name': data.name});
context.pushNamed(
'accountProfile',
pathParameters: {'name': data.name},
);
},
icon: const Icon(Symbols.launch),
label: Text('accountProfileView').tr(),