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

Custom curve #194

Merged
merged 9 commits into from
Apr 17, 2023
Merged

Custom curve #194

merged 9 commits into from
Apr 17, 2023

Conversation

Afroz-Shaikh
Copy link
Collaborator

Frame 1

Feature 🚀

This pull request adds a new feature called CustomCurve to the LinearGauge. With this feature, users can now add Bezier curves to their gauges, as well as modify various parameters to customize the look and feel of the curves.,
This feature includes the following options:

  • Bezier or straight paths: Users can choose whether to use a Bezier curve or a straight line to connect the start and end values of the gauge.
  • Painting style: Users can select from several different painting styles, including gradient fills and textured patterns.
  • Start and end values: Users can customize the start and end values of the gauge, which will affect the shape of the curve.

Usage

LinearGauge(
            curves: [
              CustomCurve(
                  midPoint: 50,
                  startHeight: 0,
                  endHeight: 0,
                  midHeight: 100,
                  paintStyle: PaintStyle.fill,
                  curvePosition: CurvePosition.top)
            ],
            rulers: const RulerStyle(
              rulerPosition: RulerPosition.bottom,
            ),
          ),

Changes

  • ✅ New Feature added
  • ✅ Adjusted ViewBox Accordingly
  • ✅ Golden Tests for CustomCurve Added
  • ✅ Documented Feature

@Afroz-Shaikh Afroz-Shaikh requested a review from hasnentai April 12, 2023 09:20
@Afroz-Shaikh Afroz-Shaikh marked this pull request as ready for review April 12, 2023 09:22
@hasnentai hasnentai merged commit 777c5fa into GeekyAnts:main Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants