diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e531a3..8ea03fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## [1.2.1] - 2023-04-10 +#### [@rickypid](https://github.com/rickypid) + +* Fix code format and README.md. + ## [1.2.0] - 2023-04-09 #### [@rickypid](https://github.com/rickypid) diff --git a/README.md b/README.md index 4e635d3..0f7fe1c 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Add the following line to `pubspec.yaml`: ```yaml dependencies: - flutter_bargraph: ^1.1.0 + flutter_bargraph: ``` ### Basic setup diff --git a/example/README.md b/example/README.md index afe5ba4..f8de890 100644 --- a/example/README.md +++ b/example/README.md @@ -32,7 +32,7 @@ Add the following line to `pubspec.yaml`: ```yaml dependencies: - flutter_bargraph: ^1.1.0 + flutter_bargraph: ``` ### Basic setup @@ -46,9 +46,9 @@ dependencies: ```dart BarGraph( - min: 0, - max: 100.0, - value: 65.0, +min: 0, +max: 100.0, +value: 65.0, ); ``` diff --git a/example/lib/main.dart b/example/lib/main.dart index d95b707..40bd421 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -96,4 +96,4 @@ class _MyHomePageState extends State { ), ); } -} \ No newline at end of file +} diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 2e2d506..7c933ac 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_bargraph_example description: Flutter simple example, single value bar graph viewer with indicators -version: 1.1.1 +version: 1.2.1 environment: sdk: '>=2.19.6 <3.0.0' diff --git a/lib/src/bargraph.dart b/lib/src/bargraph.dart index 61e606f..0d9df11 100644 --- a/lib/src/bargraph.dart +++ b/lib/src/bargraph.dart @@ -300,8 +300,7 @@ class _BarGraphState extends State with TickerProviderStateMixin { List widgets = List.generate(widget.divisions + 1, (index) { return Container( color: widget.indicatorsColor, - width: (widget.orientation == - BarGraphOrientation.horizontalFromLeft || + width: (widget.orientation == BarGraphOrientation.horizontalFromLeft || widget.orientation == BarGraphOrientation.horizzontalFromRight) ? 3 : null, diff --git a/pubspec.yaml b/pubspec.yaml index 9572e94..b24f4e7 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_bargraph description: Bar Graph Indicator for Flutter. It graphically displays the current value on a bar graph with animation when the value changes. orientation/direction of the bar is castumizable. -version: 1.2.0 +version: 1.2.1 homepage: https://github.com/rickypid/flutter_bargraph repository: https://github.com/rickypid/flutter_bargraph issue_tracker: https://github.com/rickypid/flutter_bargraph/issues