-
Notifications
You must be signed in to change notification settings - Fork 270
Chore/6424 ci v3 #6463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
tyllark
wants to merge
10
commits into
main
Choose a base branch
from
chore/6424_ci_v3
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Chore/6424 ci v3 #6463
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…elds - Introduced AuthenticatorTextFieldController for programmatic control over text fields. - Updated mixins (AuthenticatorTextField, AuthenticatorUsernameField) to utilize the new controller. - Enhanced various form fields (ConfirmSignIn, ConfirmSignUp, EmailSetup, PhoneNumber, ResetPassword, SignIn, SignUp, VerifyUser) to accept and manage TextEditingController. - Added tests to ensure synchronization between form fields and their respective controllers.
…e sync timing - Add nullable controller getter to AuthenticatorFormField and include it in diagnostics - Add debugFillProperties implementations to form field widgets to surface the controller prop - Rework text controller sync logic in AuthenticatorTextField and AuthenticatorUsernameField: - Skip syncing in initState and avoid syncing during build - Schedule post-frame callbacks in didChangeDependencies to first apply controller->state (if controller has initial text) then sync state->controller - Minor conditional/formatting cleanup in username field sync
…tingController support for form fields - Export AuthenticatorTextFieldController from package API. - Integrate optional controller parameter into prebuilt form fields (sign-in, sign-up, confirm, reset password, verify user, email setup, etc.) with proper diagnostics. - Ensure bidirectional sync between controllers and internal authenticator state. - Add example demonstrating controller usage and pre-population (examples/authenticator_with_controllers.dart). - Add comprehensive widget tests for controller <-> state synchronization, standard TextEditingController compatibility, and rapid updates. - Update CHANGELOG with 2.4.0 notes.
… stabilize sync Buffer controller changes and apply them in a post-frame callback to avoid calling setState during build. Normalize trailing whitespace when comparing controller and state to reduce unnecessary writes. Ensure didUpdateWidget sync runs after build and clear pending state on dispose. Add widget tests covering typing, special keys, rapid updates, and controller interactions.
- Add enabledOverride and visible to AuthenticatorFormField and include in diagnostics - Use enabledOverride to determine enabled state; honor override in ConfirmSignUpFormField - Render hidden fields offstage with Visibility maintaining state (so programmatic updates still sync) - Propagate enabled/visible through SignUpFormField factory APIs and concrete field constructors - Add tests verifying disabled fields still sync with controllers and hidden fields retain state synchronization
- Updated all form fields to replace TextEditingController with AuthenticatorTextFieldController. - Modified constructors and properties across various form fields including ConfirmSignUpFormField, EmailSetupFormField, PhoneNumberField, ResetPasswordFormField, SignInFormField, SignUpFormField, and VerifyUserFormField. - Adjusted tests to accommodate the new controller type, ensuring compatibility and functionality remain intact.
…s and streamline effective enabled logic
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue #, if available:
Description of changes:
DO NOT MERGE
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.