Skip to content

Conversation

@bleroux
Copy link
Contributor

@bleroux bleroux commented Jun 21, 2023

Description

This PR is a fork of #118610 with some changes (mainly applying @justinmc comments).

This can be used by KishanBusa8 to update #118610 or can become a non WIP PR if KishanBusa8 does not respond or can not work on the update.

Related Issue

fixes #11068

Tests

Adds 3 tests.

@github-actions github-actions bot added f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. labels Jun 21, 2023
@bleroux bleroux marked this pull request as draft June 21, 2023 14:14
@bleroux bleroux force-pushed the add_input_decorator_error_widget branch from 430f190 to ea9d0b0 Compare June 21, 2023 14:19
@justinmc justinmc mentioned this pull request Jun 26, 2023
8 tasks
Copy link
Contributor

@justinmc justinmc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

I've closed #118610 so let's move forward with this PR.

@bleroux bleroux marked this pull request as ready for review June 26, 2023 21:01
@bleroux bleroux force-pushed the add_input_decorator_error_widget branch from ea9d0b0 to cfba5a5 Compare June 26, 2023 21:01
@bleroux bleroux changed the title [WIP] Add InputDecorator.error to allow error message customization Add InputDecorator.error to allow error message customization Jun 26, 2023
@bleroux bleroux force-pushed the add_input_decorator_error_widget branch from cfba5a5 to de1668c Compare June 27, 2023 09:04
@bleroux bleroux force-pushed the add_input_decorator_error_widget branch from de1668c to 1361b2f Compare June 28, 2023 07:07
@github-actions github-actions bot removed f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. labels Jun 28, 2023
@bleroux bleroux added the autosubmit Merge PR when tree becomes green via auto submit App label Jun 28, 2023
@auto-submit auto-submit bot merged commit 8d83706 into flutter:master Jun 28, 2023
@bleroux bleroux deleted the add_input_decorator_error_widget branch June 28, 2023 15:04
auto-submit bot pushed a commit to flutter/packages that referenced this pull request Jun 28, 2023
Roll Flutter from 96a2c05 to 51bef1b (37 revisions)

flutter/flutter@96a2c05...51bef1b

2023-06-28 [email protected] Roll Flutter Engine from e8a1c23d66ba to 241ca5c1d6be (1 revision) (flutter/flutter#129725)
2023-06-28 [email protected] Update analysis, linter, and repo links in analysis options (flutter/flutter#129686)
2023-06-28 [email protected] Roll Flutter Engine from be1073aa352f to e8a1c23d66ba (1 revision) (flutter/flutter#129723)
2023-06-28 [email protected] Dev, examples/api, etc updated for Material 3 by default (flutter/flutter#129683)
2023-06-28 [email protected] Add `DatePickerTheme.inputDecorationTheme` for the DatePicker with input mode. (flutter/flutter#128950)
2023-06-28 [email protected] [framework] ensure flexible space bar fades when scrolling. (flutter/flutter#129527)
2023-06-28 [email protected] Add InputDecorator.error to allow error message customization (flutter/flutter#129275)
2023-06-28 [email protected] Roll Flutter Engine from b388e852be44 to be1073aa352f (1 revision) (flutter/flutter#129712)
2023-06-28 [email protected] Roll Flutter Engine from 17173994a8c2 to b388e852be44 (1 revision) (flutter/flutter#129708)
2023-06-28 [email protected] [flutter roll] Revert "Fix `AnimatedList` & `AnimatedGrid` doesn't apply `MediaQuery` padding" (flutter/flutter#129645)
2023-06-28 [email protected] Roll Flutter Engine from 2f4fc4872699 to 17173994a8c2 (1 revision) (flutter/flutter#129694)
2023-06-28 [email protected] Roll Flutter Engine from a6d9d12c440f to 2f4fc4872699 (1 revision) (flutter/flutter#129691)
2023-06-28 [email protected] Roll Flutter Engine from 25a5850f8b5b to a6d9d12c440f (4 revisions) (flutter/flutter#129687)
2023-06-28 [email protected] Roll Flutter Engine from 7c7c45d53bec to 25a5850f8b5b (1 revision) (flutter/flutter#129682)
2023-06-27 [email protected] Roll Flutter Engine from f320b8c36fee to 7c7c45d53bec (14 revisions) (flutter/flutter#129678)
2023-06-27 [email protected] Update labeler yaml (flutter/flutter#129676)
2023-06-27 [email protected] Revert "Fix the matcher condition where multiple matchers are found" (flutter/flutter#129675)
2023-06-27 [email protected] Revert "Labeler format to remove extra single quote" (flutter/flutter#129674)
2023-06-27 [email protected] Revert "Update labeler.yml to v5.0.0-beta.1" (flutter/flutter#129673)
2023-06-27 [email protected] Labeler format to remove extra single quote (flutter/flutter#129672)
2023-06-27 [email protected] Fix the matcher condition where multiple matchers are found (flutter/flutter#129670)
2023-06-27 [email protected] Automatically migrate ClipboardData.text to non-null (flutter/flutter#129567)
2023-06-27 [email protected] Remove Editable.onCaretChanged callback (flutter/flutter#109114)
2023-06-27 [email protected] Reland "Fix issue where DevTools would not be immediately available when using --start-paused (#126698)" (flutter/flutter#129368)
2023-06-27 [email protected] Update Xcode to 14.3.1 (flutter/flutter#129024)
2023-06-27 [email protected] Adds `dart_fix` support to `integration_test` (flutter/flutter#129579)
2023-06-27 [email protected] Update labeler.yml to v5.0.0-beta.1 (flutter/flutter#129617)
2023-06-27 [email protected] iOS TextSelectionToolbar fidelity (flutter/flutter#127757)
2023-06-27 [email protected] Make a paragraph test involving Chinese characters work with inconsistent host system fonts (flutter/flutter#129628)
2023-06-27 [email protected] Roll Packages from 6b70804 to f89ce02 (7 revisions) (flutter/flutter#129630)
2023-06-27 [email protected] Roll Flutter Engine from 715eff211a42 to f320b8c36fee (6 revisions) (flutter/flutter#129599)
2023-06-27 [email protected] Fix chinese text is not selected by long press (flutter/flutter#129320)
2023-06-26 [email protected] Roll Flutter Engine from 0da06de991a9 to 715eff211a42 (4 revisions) (flutter/flutter#129593)
2023-06-26 [email protected] Fix syntax error in no-response (flutter/flutter#129588)
2023-06-26 [email protected] Roll Flutter Engine from f2d70cc809cd to 0da06de991a9 (3 revisions) (flutter/flutter#129582)
2023-06-26 [email protected] Updated chip_test.dart tests for M3 (flutter/flutter#129570)
2023-06-26 [email protected] Roll Flutter Engine from 4032a9bc964e to f2d70cc809cd (4 revisions) (flutter/flutter#129574)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages
Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose

...
@TheLastFlame
Copy link
Contributor

I'm trying to use this in my project and ran into one critical issue. It is incompatible with validation. Validators still only work with errorText.

I have written validators passing values to my state-management for visual display during autovalidation. However, this didn't solve the problem of no validity checking in forms.
formKey.currentState!.validate() still checks for errorText. If it is null, the validation works positively, although the error is actually present.

@TheLastFlame
Copy link
Contributor

TheLastFlame commented Aug 12, 2023

A previous discussion on adding this functionality addressed this issue and discussed the possibility of adding a separate validationBuilder. However, I don't see something similar here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App

Projects

None yet

Development

Successfully merging this pull request may close these issues.

InputDecorator 'errorText' should have 'textAlign' property

3 participants