Skip to content

Commit 6eec8de

Browse files
committed
fix: state management for signature method and code challenge method in OAuth fields
1 parent 8aaa0b3 commit 6eec8de

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

lib/screens/common_widgets/auth/oauth1_fields.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,9 @@ class _OAuth1FieldsState extends ConsumerState<OAuth1Fields> {
130130
? null
131131
: (OAuth1SignatureMethod? newAlgo) {
132132
if (newAlgo != null) {
133-
_signatureMethodController = newAlgo;
133+
setState(() {
134+
_signatureMethodController = newAlgo;
135+
});
134136
_updateOAuth1();
135137
}
136138
},

lib/screens/common_widgets/auth/oauth2_field.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,9 @@ class _OAuth2FieldsState extends ConsumerState<OAuth2Fields> {
256256
: (String? newMethod) {
257257
if (newMethod != null &&
258258
newMethod != _codeChallengeMethod) {
259-
_codeChallengeMethod = newMethod;
259+
setState(() {
260+
_codeChallengeMethod = newMethod;
261+
});
260262

261263
_updateOAuth2();
262264
}

0 commit comments

Comments
 (0)