Pretty up the account subtitles on sign in screen

codemagic-setup
Hank Grabowski 2023-02-28 00:50:28 -05:00
rodzic 4255ac7dbc
commit c7a83068c0
1 zmienionych plików z 16 dodań i 3 usunięć

Wyświetl plik

@ -206,7 +206,9 @@ class _SignInScreenState extends State<SignInScreen> {
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<SignInScreen> {
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(),