Skip to content

Commit

Permalink
v 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ferraridamiano committed Jul 30, 2022
1 parent d6f8da8 commit 62628ac
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 2.0.1
- Improved Pascal-Bar conversion
- We forced the use of types. So that many more error will be caught at
compile-time. E.g. ConversionNode has an associated type that is the type of the
name (e.g. LENGTH, AREA, etc.)

# 2.0.0
- We finally introduce extensions on `num` and `String`. Checkout the
documentation for more details. Now you can easily convert in this way:
Expand Down
3 changes: 2 additions & 1 deletion lib/properties/simple_custom_property.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ class SimpleCustomProperty extends DoubleProperty<String> {
);
}
ConversionNode<String> _convertMapToConversionTree(Map<String, double> mapConversion) {
ConversionNode<String> _convertMapToConversionTree(
Map<String, double> mapConversion) {
var baseUnit = mapConversion.keys.firstWhere(
(element) => mapConversion[element] == 1); //take the base unit
List<ConversionNode<String>> leafNodes = [];
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: units_converter
description: Simple and light units conversion package for all your needs.
version: 2.0.0
version: 2.0.1
homepage: https://github.com/ferraridamiano/units_converter

environment:
sdk: '>=2.17.0 <3.0.0'

dev_dependencies:
lints: ^2.0.0
test: ^1.21.1
test: ^1.21.4

0 comments on commit 62628ac

Please sign in to comment.