Skip to content

Commit

Permalink
Merge pull request #2 from initCommerce/dev
Browse files Browse the repository at this point in the history
Upgrade `Gato` package to `v0.0.5`
  • Loading branch information
mehdizarepour authored Nov 3, 2021
2 parents 8fee2bb + 5fd975e commit a4c7c29
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 17 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
# Flutter/Dart/Pub related
**/doc/api/
.dart_tool/
.fvm/
.flutter-plugins
.flutter-plugins-dependencies
.packages
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.1.2

* Upgrade `Gato` package to `v0.0.5`

## 1.1.1

* Upgrade `Gato` package
Expand Down
14 changes: 7 additions & 7 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.5.0"
version: "2.8.1"
boolean_selector:
dependency: transitive
description:
Expand All @@ -28,7 +28,7 @@ packages:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0"
version: "1.3.1"
clock:
dependency: transitive
description:
Expand Down Expand Up @@ -73,14 +73,14 @@ packages:
name: gato
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.4"
version: "0.0.5"
global_configs:
dependency: "direct main"
description:
path: ".."
relative: true
source: path
version: "1.1.1"
version: "1.1.2"
matcher:
dependency: transitive
description:
Expand All @@ -94,7 +94,7 @@ packages:
name: meta
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0"
version: "1.7.0"
path:
dependency: transitive
description:
Expand All @@ -113,7 +113,7 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0"
version: "1.8.1"
stack_trace:
dependency: transitive
description:
Expand Down Expand Up @@ -148,7 +148,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.19"
version: "0.4.2"
typed_data:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion lib/global_configs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class GlobalConfigs {
/// GlobalConfigs().get('a'); // 1
/// GlobalConfigs().get('b.c'); // 2
/// ```dart
T get<T>(String path, {T Function(dynamic)? converter}) =>
T? get<T>(String path, {T Function(dynamic)? converter}) =>
gato.get(configs, path, converter: converter);

/// Sets new data to the configs
Expand Down
12 changes: 6 additions & 6 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.5.0"
version: "2.8.1"
boolean_selector:
dependency: transitive
description:
Expand All @@ -28,7 +28,7 @@ packages:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0"
version: "1.3.1"
clock:
dependency: transitive
description:
Expand Down Expand Up @@ -66,7 +66,7 @@ packages:
name: gato
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.4"
version: "0.0.5"
matcher:
dependency: transitive
description:
Expand All @@ -80,7 +80,7 @@ packages:
name: meta
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0"
version: "1.7.0"
path:
dependency: transitive
description:
Expand All @@ -99,7 +99,7 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0"
version: "1.8.1"
stack_trace:
dependency: transitive
description:
Expand Down Expand Up @@ -134,7 +134,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.19"
version: "0.4.2"
typed_data:
dependency: transitive
description:
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: global_configs
description: A flutter package to manage application configurations via singleton pattern.
version: 1.1.1
version: 1.1.2
author: Mehdi Zarepour
homepage: https://github.com/mehdizarepour/flutter-global-configs
repository: https://github.com/mehdizarepour/flutter-global-configs
Expand All @@ -12,7 +12,7 @@ environment:
dependencies:
flutter:
sdk: flutter
gato: ^0.0.4
gato: ^0.0.5

dev_dependencies:
flutter_test:
Expand Down
2 changes: 1 addition & 1 deletion test/global_configs_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void main() {
GlobalConfigs().clear();
GlobalConfigs().loadFromMap({'color': '0xFFB74093'});

Color color = GlobalConfigs().get<Color>(
Color? color = GlobalConfigs().get<Color>(
'color',
converter: (value) => Color(int.parse(value)),
);
Expand Down

0 comments on commit a4c7c29

Please sign in to comment.