From b96214fcba9fa13ec3c70252c1e8d1d3bd2b2c2d Mon Sep 17 00:00:00 2001 From: Marcus Kida Date: Mon, 19 Jan 2026 13:50:28 +0100 Subject: [PATCH] Fix auth login button state and appearance --- lib/views/auth_view.dart | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/lib/views/auth_view.dart b/lib/views/auth_view.dart index bcd135d..3d71198 100644 --- a/lib/views/auth_view.dart +++ b/lib/views/auth_view.dart @@ -19,6 +19,11 @@ class _AuthViewState extends State { @override void initState() { super.initState(); + _tokenController.addListener(() { + setState(() { + // Update button state when text changes + }); + }); WidgetsBinding.instance.addPostFrameCallback((_) { _focusNode.requestFocus(); }); @@ -111,12 +116,17 @@ class _AuthViewState extends State { : _verifyToken, style: ElevatedButton.styleFrom( padding: const EdgeInsets.symmetric(vertical: 16), + backgroundColor: Theme.of(context).colorScheme.primary, + foregroundColor: Theme.of(context).colorScheme.onPrimary, ), child: _isLoading - ? const SizedBox( + ? SizedBox( height: 20, width: 20, - child: CircularProgressIndicator(strokeWidth: 2), + child: CircularProgressIndicator( + strokeWidth: 2, + color: Theme.of(context).colorScheme.onPrimary, + ), ) : const Text('Sign In'), ),