flutter_conditional 3.0.0
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
Caseconditions 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.toCaseandBuilderValue<T>.toValueconversions. - Fix every no-match path so it consistently selects the supplied fallback.
- Allow
nulltargets to matchValue<T>entries whose match value isnull. - 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
BuilderCasecondition resolvers andBuilderValue<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