fix button style

This commit is contained in:
Salvatore Giordano
2021-01-20 18:00:29 +01:00
parent 993cab00a0
commit ec915a9087
2 changed files with 17 additions and 2 deletions
+1 -1
View File
@@ -245,4 +245,4 @@ class _MessageViewState extends State<MessageView> {
/// Helper extension for quickly retrieving the current user id from a [Client]. /// Helper extension for quickly retrieving the current user id from a [Client].
extension on Client { extension on Client {
String get uid => state.user.id; String get uid => state.user.id;
} }
@@ -222,8 +222,23 @@ class _AdvancedOptionsPageState extends State<AdvancedOptionsPage> {
), ),
Spacer(), Spacer(),
RaisedButton( RaisedButton(
color: Theme.of(context).brightness == Brightness.light
? StreamChatTheme.of(context).colorTheme.accentBlue
: Colors.white,
elevation: 0, elevation: 0,
child: Text('Login', style: TextStyle(fontSize: 16)), padding: const EdgeInsets.symmetric(vertical: 16),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(26),
),
child: Text(
'Login',
style: TextStyle(
fontSize: 16,
color: Theme.of(context).brightness != Brightness.light
? StreamChatTheme.of(context).colorTheme.accentBlue
: Colors.white,
),
),
onPressed: () async { onPressed: () async {
if (loading) { if (loading) {
return; return;