Tweak UI style

This commit is contained in:
Ming Ming 2023-07-24 21:48:35 +08:00
parent cadf9c7410
commit 3817b16847
2 changed files with 10 additions and 8 deletions

View file

@ -89,6 +89,7 @@ class _TitleView extends StatelessWidget {
context.read<AccountController>().accountPrefController.accountLabel,
builder: (context, snapshot) => AppBarTitleContainer(
title: Row(
mainAxisSize: MainAxisSize.min,
children: [
account.scheme == "http"
? Icon(
@ -101,13 +102,11 @@ class _TitleView extends StatelessWidget {
color: Theme.of(context).colorScheme.primary,
size: 16,
),
Expanded(
child: Text(
Text(
snapshot.data ?? account.address,
maxLines: 1,
overflow: TextOverflow.clip,
),
),
],
),
subtitle: snapshot.data == null ? Text(account.username2) : null,

View file

@ -161,9 +161,12 @@ class _SearchLandingState extends State<SearchLanding> {
if (isNoResult)
SizedBox(
height: 48,
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 32),
child: Center(
child: Text(L10n.global().searchLandingPeopleListEmptyText2),
),
),
)
else
SizedBox(