🐛 Bug fixes

This commit is contained in:
LittleSheep 2025-05-23 00:05:49 +08:00
parent f646dd9c0c
commit e656591527
5 changed files with 30 additions and 14 deletions

View File

@ -113,7 +113,9 @@ class AccountScreen extends HookConsumerWidget {
],
),
Text(
user.value!.profile.bio ?? 'No description yet.',
(user.value!.profile.bio.isNotEmpty)
? user.value!.profile.bio
: 'No description yet.',
maxLines: 1,
overflow: TextOverflow.ellipsis,
),
@ -146,7 +148,7 @@ class AccountScreen extends HookConsumerWidget {
],
).padding(horizontal: 16, vertical: 12),
onTap: () {
context.router.push(CreatorHubRoute());
context.router.push(CreatorHubShellRoute());
},
),
).height(140),

View File

@ -68,8 +68,11 @@ class ChatRoomListTile extends StatelessWidget {
subtitle != null
? subtitle!
: (isDirect && room.description == null)
? Text(room.members!.map((e) => '@${e.account.name}').join(', '))
: Text(room.description ?? 'descriptionNone'.tr()),
? Text(
room.members!.map((e) => '@${e.account.name}').join(', '),
maxLines: 1,
)
: Text(room.description ?? 'descriptionNone'.tr(), maxLines: 1),
trailing: trailing,
onTap: onTap,
);

View File

@ -124,6 +124,7 @@ class CreatorHubScreen extends HookConsumerWidget {
return AppScaffold(
appBar: AppBar(
leading: !isWide ? const PageBackButton() : null,
title: Text('creatorHub').tr(),
actions: [
DropdownButtonHideUnderline(

View File

@ -94,6 +94,7 @@ class RealmListScreen extends HookConsumerWidget {
itemCount: value.length,
itemBuilder: (context, item) {
return ListTile(
isThreeLine: true,
leading: ProfilePictureWidget(
fileId: value[item].pictureId,
fallbackIcon: Symbols.group,
@ -105,7 +106,12 @@ class RealmListScreen extends HookConsumerWidget {
RealmDetailRoute(slug: value[item].slug),
);
},
contentPadding: EdgeInsets.only(left: 16, right: 14),
contentPadding: EdgeInsets.only(
left: 16,
right: 14,
top: 8,
bottom: 8,
),
);
},
),

View File

@ -99,15 +99,19 @@ class WalletScreen extends HookConsumerWidget {
body: wallet.when(
data: (data) {
if (data == null) {
return Column(
children: [
Text('walletNotFound').tr(),
Text('walletCreateHint').tr(),
TextButton(
onPressed: createWallet,
child: Text('walletCreate').tr(),
),
],
return ConstrainedBox(
constraints: BoxConstraints(maxWidth: 280),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text('walletNotFound').tr().fontSize(16).bold(),
Text('walletCreateHint', textAlign: TextAlign.center).tr(),
TextButton(
onPressed: createWallet,
child: Text('walletCreate').tr(),
),
],
),
);
}