proviso 2.0.0 copy "proviso: ^2.0.0" to clipboard
proviso: ^2.0.0 copied to clipboard

Complete set of tools for widgets conditional rendering and wrapping. Conditional widgets and builders.

2.0.0 - 2026-05-01 #

Breaking changes #

  • SDK constraint updated to >=3.0.0 <4.0.0 (Dart 3 required)
  • SafeBuilder.fallbackBuilder signature changed from (Object error, BuildContext context) to (Object error, StackTrace stackTrace, BuildContext context)
  • Default fallback widget changed from Container() to SizedBox.shrink()

New features #

  • PlatformWidget — render different widgets per platform (Android, iOS, macOS, Windows, Linux, Web)
  • MediaQueryCondition — conditional rendering based on MediaQuery data
  • OrientationCondition — landscape vs portrait rendering
  • AsyncConditional<T> — Future-based loading/data/error states via FutureBuilder
  • StreamConditional<T> — Stream-based loading/data/error states via StreamBuilder
  • IfNotEmpty<T> — conditional rendering for non-empty Iterable
  • IfNotEmptyMap<K, V> — conditional rendering for non-empty Map
  • AnimatedConditional — animated transition between condition branches via AnimatedSwitcher
  • ReactiveConditional<T> — rebuilds on ValueNotifier changes
  • ConditionalWrap now supports optional elseParentBuilder for wrapping in a different parent when condition is false

Improvements #

  • Migrated to super.key and super. parameter forwarding (Dart 3 super parameters)
  • Replaced Container() with SizedBox.shrink() as default invisible fallback
  • Replaced manual null checks with ?? operator
  • Removed force unwrap (!) in SwitchCase / SwitchCaseBuilder
  • Upgraded analysis_options.yaml to use flutter_lints package
  • Added tests for ConditionalBuilder.generic() and default fallback behavior

1.0.5 - 2021-07-06 #

  • Readme & changelog fixes

1.0.4 - 2021-07-05 #

  • Readme & pubspec fixes

1.0.3 - 2021-07-04 #

  • Readme fixes

1.0.2 - 2021-07-04 #

  • General package info updated

1.0.1 - 2021-07-04 #

  • Removed dart:io dependency to fully support Web platform
  • Formatting fixes

1.0.0 - 2021-07-04 #

  • Initial implementation: ConditionWidget, ConditionBuilder, SafeBuilder, Conditional, ConditionalBuilder, SwitchCase, SwitchCaseBuilder etc.
5
likes
150
points
181
downloads

Documentation

API reference

Publisher

verified publishermos-dev.com

Weekly Downloads

Complete set of tools for widgets conditional rendering and wrapping. Conditional widgets and builders.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on proviso