Skip to content

Commit 6fc2dce

Browse files
committed
fix: update grant type state management to ensure UI refresh on change
1 parent 6eec8de commit 6fc2dce

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/screens/common_widgets/auth/oauth2_field.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,9 @@ class _OAuth2FieldsState extends ConsumerState<OAuth2Fields> {
145145
? null
146146
: (OAuth2GrantType? newGrantType) {
147147
if (newGrantType != null && newGrantType != _grantType) {
148-
_grantType = newGrantType;
148+
setState(() {
149+
_grantType = newGrantType;
150+
});
149151

150152
_updateOAuth2();
151153
}

0 commit comments

Comments
 (0)