flutter_conditional 3.0.0 copy "flutter_conditional: ^3.0.0" to clipboard
flutter_conditional: ^3.0.0 copied to clipboard

A Flutter package for readable conditional widget rendering with value matching, branching, and lazy builders.

3.0.0 #

This release is an intentionally breaking redesign of conditional selection and builder evaluation.

  • Make Case conditions and widgets explicit required arguments.
  • Make Value<T> match values and widgets explicit required arguments.
  • Require direct method inputs and builder branch collections that selection cannot meaningfully infer.
  • Remove eager BuilderCase.toCase and BuilderValue<T>.toValue conversions.
  • Fix every no-match path so it consistently selects the supplied fallback.
  • Allow null targets to match Value<T> entries whose match value is null.
  • Preserve first-match semantics even when the selected widget or builder returns null; later candidates and fallbacks are not evaluated.
  • Make all builder APIs genuinely lazy so only the selected widget builder or fallback builder runs.
  • Add lazy BuilderCase condition resolvers and BuilderValue<T> value resolvers while skipping inactive candidates before resolving them.
  • Add lazy single-condition and target-value resolvers.
  • Add custom ValueMatcher<T> support for domain-specific equality.
  • Add strict static analysis, a current Flutter CI matrix, publication validation, and enforced 100% line coverage.
  • Raise the minimum supported versions to Dart 3.8 and Flutter 3.32.
  • Regenerate every example platform runner with current Flutter templates and add an example widget smoke test.
  • Add complete public API documentation, behavioral examples, contribution guidance, security reporting, and a 2.x-to-3.0 migration guide.

2.1.0+2 #

  • Formats code

2.1.0+1 #

  • Removes unnecessary imports

2.1.0 #

  • Introduces additional methods with builder functions

2.0.0+1 #

  • Formats code comments

2.0.0 #

  • BREAKING: Replaces builder functions with named parameters.
  • Introduces optional returning functions

1.0.0+2 #

  • Adds comments as documentation
  • Creates tests
  • Updates package description
  • Updates Dart SDK version requirements
  • Formats code

1.0.0+1 #

  • Updates LICENSE.

1.0.0 #

  • initial release
5
likes
160
points
107
downloads

Documentation

API reference

Publisher

verified publishercoderave.dev

Weekly Downloads

A Flutter package for readable conditional widget rendering with value matching, branching, and lazy builders.

Repository (GitHub)
View/report issues
Contributing

Topics

#flutter #widget #conditional-rendering #builder #ui

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on flutter_conditional