Skip to content

Commit

Permalink
release of v1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
juliansteenbakker committed May 22, 2024
1 parent 7b0da9b commit fa59920
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 37 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 1.2.0
* Add localization options
* Update deprecated functions
* Add upper and lower bound for duration

## 1.1.1
Switched to lint and applied all suggested lints.

Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ class _MyHomePageState extends State<MyHomePage> {
onChange: (val) {
setState(() => _duration = val);
},
snapToMins: 5.0,
))
],
),
Expand Down
2 changes: 1 addition & 1 deletion analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include: package:lint/analysis_options_package.yaml
include: package:lint/package.yaml
30 changes: 0 additions & 30 deletions example/test/widget_test.dart

This file was deleted.

9 changes: 6 additions & 3 deletions lib/duration_picker.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
library duration_picker;

import 'dart:math' as math;

import 'package:duration_picker/localization/localization.dart';
Expand Down Expand Up @@ -369,7 +367,9 @@ class _DialState extends State<_Dial> with SingleTickerProviderStateMixin {

double _turningAngleFactor(Duration? duration) {
return _getDurationInBaseUnits(
duration ?? widget.duration, widget.baseUnit) /
duration ?? widget.duration,
widget.baseUnit,
) /
_getBaseUnitToSecondaryUnitFactor(widget.baseUnit);
}

Expand Down Expand Up @@ -836,6 +836,8 @@ class DurationPicker extends StatelessWidget {
final BaseUnit baseUnit;
final Duration? upperBound;
final Duration? lowerBound;
@Deprecated('This value was never used')
final double? snapToMins;

final double? width;
final double? height;
Expand All @@ -849,6 +851,7 @@ class DurationPicker extends StatelessWidget {
this.lowerBound,
this.width,
this.height,
@Deprecated('This value was never used') this.snapToMins,
}) : super(key: key);

@override
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 1.2.0
homepage: https://github.com/juliansteenbakker/duration_picker

environment:
sdk: '>=2.12.0 <3.0.0'
sdk: '>=2.12.0 <4.0.0'
flutter: ">=1.17.0"

dependencies:
Expand All @@ -14,4 +14,4 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
lint: ^1.10.0
lint: ^2.0.0

0 comments on commit fa59920

Please sign in to comment.