From c7a83068c026e7dfabe65c428db0278f94fd4b06 Mon Sep 17 00:00:00 2001 From: Hank Grabowski Date: Tue, 28 Feb 2023 00:50:28 -0500 Subject: [PATCH] Pretty up the account subtitles on sign in screen --- lib/screens/sign_in.dart | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/lib/screens/sign_in.dart b/lib/screens/sign_in.dart index 604b7be..e9ed2df 100644 --- a/lib/screens/sign_in.dart +++ b/lib/screens/sign_in.dart @@ -206,7 +206,9 @@ class _SignInScreenState extends State { setState(() {}); }, title: Text(p.handle), - subtitle: Text(p.id), + subtitle: Text(p.credentials is BasicCredentials + ? 'Username/Password' + : 'OAuth Login'), ); }, separatorBuilder: (_, __) => const Divider(), @@ -237,10 +239,21 @@ class _SignInScreenState extends State { title: Text( p.handle, style: active - ? const TextStyle(fontWeight: FontWeight.bold) + ? const TextStyle( + fontWeight: FontWeight.bold, + fontStyle: FontStyle.italic) + : null, + ), + subtitle: Text( + p.credentials is BasicCredentials + ? 'Username/Password' + : 'OAuth Login', + style: active + ? const TextStyle( + fontWeight: FontWeight.bold, + fontStyle: FontStyle.italic) : null, ), - subtitle: Text(p.id), ); }, separatorBuilder: (_, __) => const Divider(),