proviso 2.0.0
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.fallbackBuildersignature changed from(Object error, BuildContext context)to(Object error, StackTrace stackTrace, BuildContext context)- Default fallback widget changed from
Container()toSizedBox.shrink()
New features #
PlatformWidget— render different widgets per platform (Android, iOS, macOS, Windows, Linux, Web)MediaQueryCondition— conditional rendering based onMediaQuerydataOrientationCondition— landscape vs portrait renderingAsyncConditional<T>— Future-based loading/data/error states viaFutureBuilderStreamConditional<T>— Stream-based loading/data/error states viaStreamBuilderIfNotEmpty<T>— conditional rendering for non-emptyIterableIfNotEmptyMap<K, V>— conditional rendering for non-emptyMapAnimatedConditional— animated transition between condition branches viaAnimatedSwitcherReactiveConditional<T>— rebuilds onValueNotifierchangesConditionalWrapnow supports optionalelseParentBuilderfor wrapping in a different parent when condition is false
Improvements #
- Migrated to
super.keyandsuper.parameter forwarding (Dart 3 super parameters) - Replaced
Container()withSizedBox.shrink()as default invisible fallback - Replaced manual null checks with
??operator - Removed force unwrap (
!) inSwitchCase/SwitchCaseBuilder - Upgraded
analysis_options.yamlto useflutter_lintspackage - 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.