From 6fc2dcee1ee67ce6b0021a7c8662a513c7ac75f9 Mon Sep 17 00:00:00 2001 From: Udhay-Adithya Date: Mon, 1 Sep 2025 16:29:52 +0530 Subject: [PATCH] fix: update grant type state management to ensure UI refresh on change --- lib/screens/common_widgets/auth/oauth2_field.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/screens/common_widgets/auth/oauth2_field.dart b/lib/screens/common_widgets/auth/oauth2_field.dart index 9fc019f3..8f35665d 100644 --- a/lib/screens/common_widgets/auth/oauth2_field.dart +++ b/lib/screens/common_widgets/auth/oauth2_field.dart @@ -145,7 +145,9 @@ class _OAuth2FieldsState extends ConsumerState { ? null : (OAuth2GrantType? newGrantType) { if (newGrantType != null && newGrantType != _grantType) { - _grantType = newGrantType; + setState(() { + _grantType = newGrantType; + }); _updateOAuth2(); }