Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dart issue #169

Merged
merged 2 commits into from
Mar 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.0+1

Minor fixes

## 1.0.0

- Support for Vertical Orientation
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -46,7 +46,7 @@ This will add a line like this to your package's pubspec.yaml (and run an implic

```dart
dependencies:
geekyants_flutter_gauges: ^0.0.5
geekyants_flutter_gauges: 1.0.0
```

## Usage
15 changes: 15 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -2,3 +2,18 @@ include: package:flutter_lints/flutter.yaml

# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options


analyzer:
exclude: [build/**]
language:
strict-casts: false
strict-inference: false

# strict-raw-types: true

linter:
rules:
- cancel_subscriptions
# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
32 changes: 16 additions & 16 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
@@ -21,10 +21,10 @@ packages:
dependency: transitive
description:
name: characters
sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
sha256: e6a326c8af69605aec75ed6c187d06b349707a27fbff8222ca9cc2cff167975c
url: "https://pub.dev"
source: hosted
version: "1.3.0"
version: "1.2.1"
clock:
dependency: transitive
description:
@@ -37,10 +37,10 @@ packages:
dependency: transitive
description:
name: collection
sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c"
sha256: cfc915e6923fe5ce6e153b0723c753045de46de1b4d63771530504004a45fae0
url: "https://pub.dev"
source: hosted
version: "1.17.1"
version: "1.17.0"
cupertino_icons:
dependency: "direct main"
description:
@@ -81,15 +81,15 @@ packages:
path: ".."
relative: true
source: path
version: "1.0.0"
version: "1.0.0+1"
js:
dependency: transitive
description:
name: js
sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3
sha256: "5528c2f391ededb7775ec1daa69e65a2d61276f7552de2b5f7b8d34ee9fd4ab7"
url: "https://pub.dev"
source: hosted
version: "0.6.7"
version: "0.6.5"
lints:
dependency: transitive
description:
@@ -102,10 +102,10 @@ packages:
dependency: transitive
description:
name: matcher
sha256: c94db23593b89766cda57aab9ac311e3616cf87c6fa4e9749df032f66f30dcb8
sha256: "16db949ceee371e9b99d22f88fa3a73c4e59fd0afed0bd25fc336eb76c198b72"
url: "https://pub.dev"
source: hosted
version: "0.12.14"
version: "0.12.13"
material_color_utilities:
dependency: transitive
description:
@@ -118,18 +118,18 @@ packages:
dependency: transitive
description:
name: meta
sha256: "12307e7f0605ce3da64cf0db90e5fcab0869f3ca03f76be6bb2991ce0a55e82b"
sha256: "6c268b42ed578a53088d834796959e4a1814b5e9e164f147f580a386e5decf42"
url: "https://pub.dev"
source: hosted
version: "1.9.0"
version: "1.8.0"
path:
dependency: transitive
description:
name: path
sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
sha256: db9d4f58c908a4ba5953fcee2ae317c94889433e5024c27ce74a37f94267945b
url: "https://pub.dev"
source: hosted
version: "1.8.3"
version: "1.8.2"
sky_engine:
dependency: transitive
description: flutter
@@ -179,10 +179,10 @@ packages:
dependency: transitive
description:
name: test_api
sha256: "6182294da5abf431177fccc1ee02401f6df30f766bc6130a0852c6b6d7ee6b2d"
sha256: ad540f65f92caa91bf21dfc8ffb8c589d6e4dc0c2267818b4cc2792857706206
url: "https://pub.dev"
source: hosted
version: "0.4.18"
version: "0.4.16"
vector_math:
dependency: transitive
description:
@@ -192,5 +192,5 @@ packages:
source: hosted
version: "2.1.4"
sdks:
dart: ">=3.0.0-0 <4.0.0"
dart: ">=2.18.0 <3.0.0"
flutter: ">=1.17.0"
10 changes: 5 additions & 5 deletions lib/src/linear_gauge/pointers/linear_gauge_pointer.dart
Original file line number Diff line number Diff line change
@@ -207,7 +207,7 @@ class Pointer {
double endValue = linearGauge.getEnd;
double startValue = linearGauge.getStart;
double totalWidth = end;
offset;

bool isInversedRulers = linearGauge.getInversedRulers;

double valueInPX = !isInversedRulers
@@ -442,7 +442,7 @@ class Pointer {
_drawCircle(canvas, offset, linearGauge);
break;
default:
PointerPosition.center;
break;
}
}

@@ -519,7 +519,7 @@ class Pointer {
_drawRectangle(canvas, offset, linearGauge);
break;
default:
PointerPosition.center;
break;
}
}

@@ -596,7 +596,7 @@ class Pointer {
_drawTriangle(canvas, offset, 90, linearGauge);
break;
default:
PointerPosition.center;
break;
}
}

@@ -714,7 +714,7 @@ class Pointer {
_drawDiamond(canvas, offset, linearGauge);
break;
default:
PointerPosition.center;
break;
}
}

3 changes: 2 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: geekyants_flutter_gauges
description: A linear gauge package for Flutter that displays progress
and can be customized for appearance and behavior.
version: 1.0.0
version: 1.0.0+1
homepage: https://github.com/GeekyAnts/GaugesFlutter

environment:
@@ -17,6 +17,7 @@ dev_dependencies:
sdk: flutter
flutter_lints: ^2.0.0
golden_toolkit: ^0.15.0
lints: ^2.0.1

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec