🐛 Bug fixes
This commit is contained in:
		| @@ -113,7 +113,9 @@ class AccountScreen extends HookConsumerWidget { | |||||||
|                               ], |                               ], | ||||||
|                             ), |                             ), | ||||||
|                             Text( |                             Text( | ||||||
|                               user.value!.profile.bio ?? 'No description yet.', |                               (user.value!.profile.bio.isNotEmpty) | ||||||
|  |                                   ? user.value!.profile.bio | ||||||
|  |                                   : 'No description yet.', | ||||||
|                               maxLines: 1, |                               maxLines: 1, | ||||||
|                               overflow: TextOverflow.ellipsis, |                               overflow: TextOverflow.ellipsis, | ||||||
|                             ), |                             ), | ||||||
| @@ -146,7 +148,7 @@ class AccountScreen extends HookConsumerWidget { | |||||||
|                         ], |                         ], | ||||||
|                       ).padding(horizontal: 16, vertical: 12), |                       ).padding(horizontal: 16, vertical: 12), | ||||||
|                       onTap: () { |                       onTap: () { | ||||||
|                         context.router.push(CreatorHubRoute()); |                         context.router.push(CreatorHubShellRoute()); | ||||||
|                       }, |                       }, | ||||||
|                     ), |                     ), | ||||||
|                   ).height(140), |                   ).height(140), | ||||||
|   | |||||||
| @@ -68,8 +68,11 @@ class ChatRoomListTile extends StatelessWidget { | |||||||
|           subtitle != null |           subtitle != null | ||||||
|               ? subtitle! |               ? subtitle! | ||||||
|               : (isDirect && room.description == null) |               : (isDirect && room.description == null) | ||||||
|               ? Text(room.members!.map((e) => '@${e.account.name}').join(', ')) |               ? Text( | ||||||
|               : Text(room.description ?? 'descriptionNone'.tr()), |                 room.members!.map((e) => '@${e.account.name}').join(', '), | ||||||
|  |                 maxLines: 1, | ||||||
|  |               ) | ||||||
|  |               : Text(room.description ?? 'descriptionNone'.tr(), maxLines: 1), | ||||||
|       trailing: trailing, |       trailing: trailing, | ||||||
|       onTap: onTap, |       onTap: onTap, | ||||||
|     ); |     ); | ||||||
|   | |||||||
| @@ -124,6 +124,7 @@ class CreatorHubScreen extends HookConsumerWidget { | |||||||
|  |  | ||||||
|     return AppScaffold( |     return AppScaffold( | ||||||
|       appBar: AppBar( |       appBar: AppBar( | ||||||
|  |         leading: !isWide ? const PageBackButton() : null, | ||||||
|         title: Text('creatorHub').tr(), |         title: Text('creatorHub').tr(), | ||||||
|         actions: [ |         actions: [ | ||||||
|           DropdownButtonHideUnderline( |           DropdownButtonHideUnderline( | ||||||
|   | |||||||
| @@ -94,6 +94,7 @@ class RealmListScreen extends HookConsumerWidget { | |||||||
|                       itemCount: value.length, |                       itemCount: value.length, | ||||||
|                       itemBuilder: (context, item) { |                       itemBuilder: (context, item) { | ||||||
|                         return ListTile( |                         return ListTile( | ||||||
|  |                           isThreeLine: true, | ||||||
|                           leading: ProfilePictureWidget( |                           leading: ProfilePictureWidget( | ||||||
|                             fileId: value[item].pictureId, |                             fileId: value[item].pictureId, | ||||||
|                             fallbackIcon: Symbols.group, |                             fallbackIcon: Symbols.group, | ||||||
| @@ -105,7 +106,12 @@ class RealmListScreen extends HookConsumerWidget { | |||||||
|                               RealmDetailRoute(slug: value[item].slug), |                               RealmDetailRoute(slug: value[item].slug), | ||||||
|                             ); |                             ); | ||||||
|                           }, |                           }, | ||||||
|                           contentPadding: EdgeInsets.only(left: 16, right: 14), |                           contentPadding: EdgeInsets.only( | ||||||
|  |                             left: 16, | ||||||
|  |                             right: 14, | ||||||
|  |                             top: 8, | ||||||
|  |                             bottom: 8, | ||||||
|  |                           ), | ||||||
|                         ); |                         ); | ||||||
|                       }, |                       }, | ||||||
|                     ), |                     ), | ||||||
|   | |||||||
| @@ -99,15 +99,19 @@ class WalletScreen extends HookConsumerWidget { | |||||||
|       body: wallet.when( |       body: wallet.when( | ||||||
|         data: (data) { |         data: (data) { | ||||||
|           if (data == null) { |           if (data == null) { | ||||||
|             return Column( |             return ConstrainedBox( | ||||||
|               children: [ |               constraints: BoxConstraints(maxWidth: 280), | ||||||
|                 Text('walletNotFound').tr(), |               child: Column( | ||||||
|                 Text('walletCreateHint').tr(), |                 mainAxisAlignment: MainAxisAlignment.center, | ||||||
|                 TextButton( |                 children: [ | ||||||
|                   onPressed: createWallet, |                   Text('walletNotFound').tr().fontSize(16).bold(), | ||||||
|                   child: Text('walletCreate').tr(), |                   Text('walletCreateHint', textAlign: TextAlign.center).tr(), | ||||||
|                 ), |                   TextButton( | ||||||
|               ], |                     onPressed: createWallet, | ||||||
|  |                     child: Text('walletCreate').tr(), | ||||||
|  |                   ), | ||||||
|  |                 ], | ||||||
|  |               ), | ||||||
|             ); |             ); | ||||||
|           } |           } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user