From 2629150aab2ed780e1f77513cb8cedca542311b6 Mon Sep 17 00:00:00 2001 From: hasnentai Date: Wed, 4 Oct 2023 11:28:31 +0530 Subject: [PATCH 1/2] fix: Pointer over value bar --- example/lib/gauge_vertical.dart | 50 +++++++++++-------- example/lib/main.dart | 3 +- .../macos/Runner.xcodeproj/project.pbxproj | 2 +- .../xcshareddata/xcschemes/Runner.xcscheme | 2 +- example/pubspec.lock | 38 +++++++------- 5 files changed, 53 insertions(+), 42 deletions(-) diff --git a/example/lib/gauge_vertical.dart b/example/lib/gauge_vertical.dart index 7e601de9..eca59c07 100644 --- a/example/lib/gauge_vertical.dart +++ b/example/lib/gauge_vertical.dart @@ -14,26 +14,36 @@ class _MyVerticalGaugeState extends State { return Scaffold( body: Center( child: Padding( - padding: const EdgeInsets.all(2.0), - child: LinearGauge( - linearGaugeBoxDecoration: const LinearGaugeBoxDecoration( - thickness: 30, - borderRadius: 10, - ), - // enableAnimation: true, - gaugeOrientation: GaugeOrientation.horizontal, - rulers: RulerStyle( - primaryRulersWidth: 10, - primaryRulersHeight: 30, - primaryRulerColor: const Color(0xff310072), - inverseRulers: false, - showLabel: false, - showSecondaryRulers: false, - showPrimaryRulers: true, - rulerPosition: RulerPosition.center, - ), - ), - ), + padding: const EdgeInsets.all(2.0), + child: LinearGauge( + end: 126, + gaugeOrientation: GaugeOrientation.vertical, + rulers: RulerStyle( + rulerPosition: RulerPosition.right, + ), + pointers: const [ + Pointer( + value: 50, + height: 20, + color: Colors.green, + width: 20, + shape: PointerShape.triangle, + isInteractive: true, + onChanged: null, + pointerPosition: PointerPosition.left, + ), + ], + curves: const [ + CustomCurve( + startHeight: 4, + endHeight: 50, + midHeight: 5, + curvePosition: CurvePosition.left, + end: 126, + midPoint: 50 * 0.8, + ), + ], + )), ), ); } diff --git a/example/lib/main.dart b/example/lib/main.dart index cb40c6d9..b1434508 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -1,3 +1,4 @@ +import 'package:example/gauge_vertical.dart'; import 'package:flutter/material.dart'; import 'package:geekyants_flutter_gauges/geekyants_flutter_gauges.dart'; @@ -5,7 +6,7 @@ void main() { runApp( const MaterialApp( debugShowCheckedModeBanner: false, - home: RadialGaugeExample(), + home: MyVerticalGauge(), ), ); } diff --git a/example/macos/Runner.xcodeproj/project.pbxproj b/example/macos/Runner.xcodeproj/project.pbxproj index d9333e47..c5fd5489 100644 --- a/example/macos/Runner.xcodeproj/project.pbxproj +++ b/example/macos/Runner.xcodeproj/project.pbxproj @@ -182,7 +182,7 @@ isa = PBXProject; attributes = { LastSwiftUpdateCheck = 0920; - LastUpgradeCheck = 1300; + LastUpgradeCheck = 1430; ORGANIZATIONNAME = ""; TargetAttributes = { 33CC10EC2044A3C60003C045 = { diff --git a/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index fb7259e1..83d88728 100644 --- a/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -1,6 +1,6 @@ =3.0.0-0 <4.0.0" + dart: ">=3.1.0-185.0.dev <4.0.0" flutter: ">=1.17.0" From 6d47a4502af80e745addf6bb8d35f3cbc6c865c7 Mon Sep 17 00:00:00 2001 From: hasnentai Date: Wed, 4 Oct 2023 11:37:39 +0530 Subject: [PATCH 2/2] Fix: Pointer over value bar --- CHANGELOG.md | 7 +++++++ pubspec.yaml | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 504554ff..b5793bda 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## 1.0.3 + +**Fixes** + +- Fixed Drawing of `Pointer` over `valueBar` + + ## 1.0.2 **Features** diff --git a/pubspec.yaml b/pubspec.yaml index 033680db..650fbf1a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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.2 +version: 1.0.3 homepage: https://github.com/GeekyAnts/GaugesFlutter environment: