Skip to content

docs: add submit button state example #1490#1508

Merged
deandreamatias merged 3 commits into
flutter-form-builder-ecosystem:mainfrom
rednikisfun:docs-1490-submit-button-example
Jun 16, 2026
Merged

docs: add submit button state example #1490#1508
deandreamatias merged 3 commits into
flutter-form-builder-ecosystem:mainfrom
rednikisfun:docs-1490-submit-button-example

Conversation

@rednikisfun

Copy link
Copy Markdown
Contributor

Summary

  • Adds a new SubmitButtonForm example that enables/disables the submit button from FormBuilder state.
  • Demonstrates conditional validation by requiring email only when the updates switch is enabled.
  • Wires the example into the example app navigation and README docs.

Closes #1490

Verification

  • dart format .
  • flutter analyze
  • flutter analyze example
  • flutter test

Notes

  • Left pubspec.lock and example/pubspec.lock unchanged. On my local Flutter SDK, flutter pub get --enforce-lockfile wants to update unrelated transitive meta and test_api versions, so I kept this PR scoped to docs/example changes.

@codecov

codecov Bot commented Jun 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.85%. Comparing base (38a24f6) to head (f080271).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1508   +/-   ##
=======================================
  Coverage   90.85%   90.85%           
=======================================
  Files          21       21           
  Lines         853      853           
=======================================
  Hits          775      775           
  Misses         78       78           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread example/lib/sources/submit_button.dart Outdated
Comment thread example/lib/sources/submit_button.dart Outdated
@deandreamatias

Copy link
Copy Markdown
Collaborator

Thanks a lot for this contribution! I will merge

@deandreamatias deandreamatias merged commit 571c43c into flutter-form-builder-ecosystem:main Jun 16, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add example with disable/enable button usign form state

2 participants