Skip to content

Commit

Permalink
v7.0.0
Browse files Browse the repository at this point in the history
- [Breaking] Migrate connectivity_plus library to latest
- Added support for ethernet, bluetooth, vpn connectivity
- Added toBool method that return true if given string is "true" as a String
- Added more comments to improve pub points
  • Loading branch information
Bhoomin committed Apr 12, 2024
1 parent fae7b84 commit c40b6ad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## 7.0.0-beta1
## 7.0.0
- [Breaking] Migrate connectivity_plus library to latest
- Added support for ethernet, bluetooth, vpn connectivity
- Added toBool method that return true if given string is "true" as a String
- Added more comments to improve pub points
## 6.1.3
Expand Down
3 changes: 2 additions & 1 deletion lib/src/widgets/widgets.dart
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,10 @@ Widget snapWidgetHelper<T>(
String? defaultErrorMessage,
@Deprecated('Do not use this') bool checkHasData = false,
Widget Function(String)? errorBuilder,
bool showErrorLog = false,
}) {
if (snap.hasError) {
log('nb_utils->snapWidgetHelper(): ${snap.error}');
if (showErrorLog) log('nb_utils->snapWidgetHelper(): ${snap.error}');
if (errorBuilder != null) {
return errorBuilder.call(defaultErrorMessage ?? snap.error.toString());
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: nb_utils
description: Collection of Widgets and helpful Methods that every developer needs.
version: 7.0.0-beta1
version: 7.0.0
#homepage: https://bhoominn.github.io
repository: https://github.com/bhoominn/nb_utils
issue_tracker: https://github.com/bhoominn/nb_utils/issues
Expand Down

0 comments on commit c40b6ad

Please sign in to comment.