Skip to content

Commit

Permalink
version 0.7.8
Browse files Browse the repository at this point in the history
Upgrade to Flutter 1.17
  • Loading branch information
Arbaz-Softagics committed May 8, 2020
1 parent 2d9e36e commit f30893d
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 39 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [0.7.8]

* Upgrade to flutter stable version 1.17
* `Navigator(context).pop()' function issues fixed
* Minor bug fixed at Single/Multi selection dialog

## [0.7.7+1]

* Minor bug fixed at SharedPreferences remove function
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Commons Flutter package can used for Flutter **Android** and **IOS** application
Add this to your package's `pubspec.yaml` file:
```yaml
dependencies:
commons: ^0.7.7+1
commons: ^0.7.8
```
### 2. Install it
Expand Down
26 changes: 13 additions & 13 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,49 +7,49 @@ packages:
name: archive
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.11"
version: "2.0.13"
args:
dependency: transitive
description:
name: args
url: "https://pub.dartlang.org"
source: hosted
version: "1.5.2"
version: "1.6.0"
async:
dependency: transitive
description:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.4.0"
version: "2.4.1"
boolean_selector:
dependency: transitive
description:
name: boolean_selector
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.5"
version: "2.0.0"
charcode:
dependency: transitive
description:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.2"
version: "1.1.3"
collection:
dependency: transitive
description:
name: collection
url: "https://pub.dartlang.org"
source: hosted
version: "1.14.11"
version: "1.14.12"
commons:
dependency: "direct main"
description:
path: ".."
relative: true
source: path
version: "0.7.7+1"
version: "0.7.8"
convert:
dependency: transitive
description:
Expand All @@ -63,7 +63,7 @@ packages:
name: crypto
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.3"
version: "2.1.4"
cupertino_icons:
dependency: "direct main"
description:
Expand Down Expand Up @@ -134,7 +134,7 @@ packages:
name: image
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.4"
version: "2.1.12"
intl:
dependency: transitive
description:
Expand Down Expand Up @@ -225,7 +225,7 @@ packages:
name: quiver
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.5"
version: "2.1.3"
share:
dependency: transitive
description:
Expand Down Expand Up @@ -272,7 +272,7 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.5.5"
version: "1.7.0"
stack_trace:
dependency: transitive
description:
Expand Down Expand Up @@ -307,7 +307,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.11"
version: "0.2.15"
time:
dependency: transitive
description:
Expand Down Expand Up @@ -363,7 +363,7 @@ packages:
name: xml
url: "https://pub.dartlang.org"
source: hosted
version: "3.5.0"
version: "3.6.1"
sdks:
dart: ">=2.6.0 <3.0.0"
flutter: ">=1.12.13+hotfix.4 <2.0.0"
4 changes: 2 additions & 2 deletions lib/src/dialogs/selection_dialogs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ class ___SelectionDialogState extends State<__SelectionDialog> {
_selectedItems.remove(data);
}
},
title: highlightSubTitleTextWidget(
title: highlightTitleTextWidget(
context, "${data.title}", _searchQuery),
)
: ListTile(
onTap: () {
pop(context);
widget.onSubmit(data);
},
title: highlightSubTitleTextWidget(
title: highlightTitleTextWidget(
context, "${data.title}", _searchQuery),
);
}
Expand Down
19 changes: 9 additions & 10 deletions lib/src/functions/navigation_functions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ Future<T> replaceWith<T extends Object>(BuildContext context, Widget route) {
}

/// Navigator pop function
bool pop<T extends Object>(BuildContext context, [T result]) {
pop<T extends Object>(BuildContext context, [T result]) {
var canPop = _canPop(context);
assert(canPop, "Cannot pop initial route.");
return Navigator.of(context).pop<T>(result);
Navigator.of(context).pop<T>(result);
}

bool mustPop<T extends Object>(BuildContext context, [T result]) {
return Navigator.of(context).pop<T>(result);
mustPop<T extends Object>(BuildContext context, [T result]) {
Navigator.of(context).pop<T>(result);
}

_canPop(BuildContext context) {
Expand All @@ -45,17 +45,16 @@ extension NavigatorExtension on State {
return replaceWith(context, route);
}

bool popThis<T extends Object>([T result]) {
return pop(context, result);
popThis<T extends Object>([T result]) {
pop(context, result);
}

bool mustPopThis<T extends Object>([T result]) {
return mustPop(context, result);
mustPopThis<T extends Object>([T result]) {
mustPop(context, result);
}

Future<T> popAndPushThis<T extends Object>(Widget route) {
var ok = pop(context);
assert(ok, "Cannot pop initial route.");
pop(context);
return push(context, route);
}
}
24 changes: 12 additions & 12 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,42 +7,42 @@ packages:
name: archive
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.11"
version: "2.0.13"
args:
dependency: transitive
description:
name: args
url: "https://pub.dartlang.org"
source: hosted
version: "1.5.2"
version: "1.6.0"
async:
dependency: transitive
description:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.4.0"
version: "2.4.1"
boolean_selector:
dependency: transitive
description:
name: boolean_selector
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.5"
version: "2.0.0"
charcode:
dependency: transitive
description:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.2"
version: "1.1.3"
collection:
dependency: transitive
description:
name: collection
url: "https://pub.dartlang.org"
source: hosted
version: "1.14.11"
version: "1.14.12"
convert:
dependency: transitive
description:
Expand All @@ -56,7 +56,7 @@ packages:
name: crypto
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.3"
version: "2.1.4"
data_connection_checker:
dependency: "direct main"
description:
Expand Down Expand Up @@ -120,7 +120,7 @@ packages:
name: image
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.4"
version: "2.1.12"
intl:
dependency: "direct main"
description:
Expand Down Expand Up @@ -197,7 +197,7 @@ packages:
name: quiver
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.5"
version: "2.1.3"
share:
dependency: "direct main"
description:
Expand Down Expand Up @@ -244,7 +244,7 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.5.5"
version: "1.7.0"
stack_trace:
dependency: transitive
description:
Expand Down Expand Up @@ -279,7 +279,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.11"
version: "0.2.15"
time:
dependency: "direct main"
description:
Expand Down Expand Up @@ -335,7 +335,7 @@ packages:
name: xml
url: "https://pub.dartlang.org"
source: hosted
version: "3.5.0"
version: "3.6.1"
sdks:
dart: ">=2.6.0 <3.0.0"
flutter: ">=1.12.13+hotfix.4 <2.0.0"
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: commons
description: Commons Flutter package includes alert dialogs, extension functions and much more... Written by 'Ch Arbaz Mateen'
version: 0.7.7+1
version: 0.7.8
homepage: https://www.arbazmateen.com
repository: https://github.com/Arbaz-Softagics/commons

Expand Down

0 comments on commit f30893d

Please sign in to comment.