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

View file

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