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,12 +102,10 @@ 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,
),
), ),
], ],
), ),

View file

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